diff --git a/src/components/sections/compensation-calculator/CompensationCalculator.tsx b/src/components/sections/compensation-calculator/CompensationCalculator.tsx index a853fa5b0..dd98edcbb 100644 --- a/src/components/sections/compensation-calculator/CompensationCalculator.tsx +++ b/src/components/sections/compensation-calculator/CompensationCalculator.tsx @@ -1,11 +1,8 @@ import Text from "src/components/text/Text"; import { CompensationCalculatorSection } from "studio/lib/interfaces/pages"; +import { COMPENSATIONS_BENEFITS } from "studio/lib/queries/specialPages"; import { loadStudioQuery } from "studio/lib/store"; -import { - COMPENSATIONS_BENEFITS, - COMPENSATIONS_PAGE_BY_SLUG_QUERY, -} from "studio/lib/queries/specialPages"; import styles from "./compensation-calculator.module.css"; export interface CompensationCalculatorProps { @@ -24,6 +21,7 @@ export default async function CompensationCalculator({ }, ); const compensationCalculator = employeesPageRes.data.slug; + console.log(compensationCalculator); return (
diff --git a/studio/schemas/documents/pageBuilder.ts b/studio/schemas/documents/pageBuilder.ts index e8f98b8b7..88f54b002 100644 --- a/studio/schemas/documents/pageBuilder.ts +++ b/studio/schemas/documents/pageBuilder.ts @@ -5,6 +5,7 @@ import { titleID } from "studio/schemas/fields/text"; import article from "studio/schemas/objects/sections/article"; import callout from "studio/schemas/objects/sections/callout"; import callToAction from "studio/schemas/objects/sections/callToAction"; +import { compensationCalculator } from "studio/schemas/objects/sections/compensation-calculator"; import { employees } from "studio/schemas/objects/sections/employees"; import grid from "studio/schemas/objects/sections/grid"; import hero from "studio/schemas/objects/sections/hero"; @@ -14,7 +15,6 @@ import testimonals from "studio/schemas/objects/sections/testimonials"; import seo from "studio/schemas/objects/seo"; import { titleSlug } from "studio/schemas/schemaTypes/slug"; import { firstTranslation } from "studio/utils/i18n"; -import { compensationCalculator } from "../objects/sections/compensation-calculator"; export const pageBuilderID = "pageBuilder";