diff --git a/src/components/sections/compensation-calculator/CompensationCalculator.tsx b/src/components/sections/compensation-calculator/CompensationCalculator.tsx index d8e89ea8f..7bcb8a635 100644 --- a/src/components/sections/compensation-calculator/CompensationCalculator.tsx +++ b/src/components/sections/compensation-calculator/CompensationCalculator.tsx @@ -5,7 +5,9 @@ import LinkButton from "src/components/linkButton/LinkButton"; import Text from "src/components/text/Text"; import { cnIf } from "src/utils/css"; import { getHref } from "src/utils/link"; +import { ILink } from "studio/lib/interfaces/navigation"; import { CompensationCalculatorSection } from "studio/lib/interfaces/pages"; +import { CompensationCalculatorBackground } from "studio/schemas/objects/sections/compensation-calculator"; import { getHandbookLinksFromCompensationPage, @@ -27,16 +29,10 @@ export default async function CompensationCalculator({ const salariesRes = getLatestSalaries(); const localeRes = getLocale(); - const handbookLinksRes = await getHandbookLinksFromCompensationPage(language); - const calculatorBgClassname = cnIf({ [styles.calculator]: true, [styles["calculator--violet"]]: section.background === "violet", }); - const handbookBgClassname = cnIf({ - [styles.handbook]: true, - [styles["handbook--violet"]]: section.background === "violet", - }); const radioBackground = section.background === "violet" ? "light" : "dark"; @@ -72,37 +68,66 @@ export default async function CompensationCalculator({ )} -