Skip to content

Commit

Permalink
naming changes
Browse files Browse the repository at this point in the history
  • Loading branch information
anemne committed Sep 11, 2024
1 parent 441b6e9 commit 57fc611
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/(main)/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async function Page({ params }: Props) {
return isDraftMode ? (
<CompensationsPreview
initialCompensations={initialCompensationsPage}
initialLocation={initialLocationsData}
initialLocations={initialLocationsData}
/>
) : (
<Compensations
Expand Down
6 changes: 3 additions & 3 deletions src/compensations/CompensationsPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import { COMPENSATIONS_PAGE_QUERY } from "studio/lib/queries/pages";

interface CompensationsPreviewProps {
initialCompensations: QueryResponseInitial<CompensationsPage>;
initialLocation: QueryResponseInitial<CompanyLocation[]>;
initialLocations: QueryResponseInitial<CompanyLocation[]>;
}

const CompensationsPreview = ({
initialCompensations,
initialLocation,
initialLocations,
}: CompensationsPreviewProps) => {
const { data } = useQuery<CompensationsPage>(
COMPENSATIONS_PAGE_QUERY,
Expand All @@ -24,7 +24,7 @@ const CompensationsPreview = ({

const { data: locationData } = useQuery<CompanyLocation[]>(
COMPANY_LOCATIONS_QUERY,
{ initial: initialLocation },
{ initial: initialLocations },
);

return (
Expand Down

0 comments on commit 57fc611

Please sign in to comment.