-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #503 from varianter/refactor/v3-inline-benefit-com…
…ponent v3 - inline benefit component
- Loading branch information
Showing
7 changed files
with
48 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
import styles from "./salaryAndBenefits.module.css"; | ||
import Text from "src/components/text/Text"; | ||
import {SalaryAndBenefits as SalaryAndBenefitsPayload} from "studio/lib/payloads/salaryAndBenefits"; | ||
import Benefit from './components/benefit/Benefit'; | ||
import { SalaryAndBenefitsPage } from "studio/lib/payloads/salaryAndBenefits"; | ||
import { RichText } from "src/components/richText/RichText"; | ||
|
||
interface SalaryAndBenefitsProps { | ||
salaryAndBenefits: SalaryAndBenefitsPayload | ||
salaryAndBenefits: SalaryAndBenefitsPage; | ||
} | ||
|
||
const SalaryAndBenefits = ({salaryAndBenefits}: SalaryAndBenefitsProps) => { | ||
const SalaryAndBenefits = ({ salaryAndBenefits }: SalaryAndBenefitsProps) => { | ||
return ( | ||
<div className={styles.wrapper}> | ||
<Text type="h1">{salaryAndBenefits.basicTitle}</Text> | ||
<div className={styles.benefits}> | ||
{salaryAndBenefits.benefits.map((benefit) => ( | ||
<Benefit key={benefit._key} benefit={benefit} /> | ||
<div key={benefit._key} className={styles.benefitWrapper}> | ||
<Text type="h2">{benefit.basicTitle}</Text> | ||
<RichText value={benefit.richText} /> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default SalaryAndBenefits; | ||
export default SalaryAndBenefits; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters