Skip to content

Commit

Permalink
Fix layout props
Browse files Browse the repository at this point in the history
  • Loading branch information
djfarrelly committed Oct 27, 2023
1 parent 2beea8f commit 4ec0f0b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ import {
Layout as DocsLayout,
type Props as DocsLayoutProps,
} from "../shared/Docs/Layout";
import { Layout as CaseStudyLayout } from "../shared/CaseStudy/Layout";
import {
Layout as CaseStudyLayout,
type Props as CaseStudyLayoutProps,
} from "../shared/CaseStudy/Layout";

import PageBanner from "../shared/legacy/PageBanner";
import type { PageProps } from "@/shared/types";
Expand Down Expand Up @@ -62,7 +65,7 @@ function DefaultLayout({ children }) {
);
}

type DefaultProps = PageProps & DocsLayoutProps;
type DefaultProps = PageProps & DocsLayoutProps & CaseStudyLayoutProps;

function MyApp({ Component, pageProps }: AppProps<DefaultProps>) {
const router = useRouter();
Expand Down

0 comments on commit 4ec0f0b

Please sign in to comment.