Fix build errors

This commit is contained in:
Darren Clarke 2023-03-22 07:50:47 +00:00
parent 97b1c3d6ee
commit fb3d574121
6 changed files with 5877 additions and 32824 deletions

View file

@ -6,7 +6,7 @@ interface AboutBoxProps {
backgroundColor: string;
}
export const AboutBox: FC<AboutBoxProps> = ({ backgroundColor, children }) => {
export const AboutBox: FC<AboutBoxProps> = ({ backgroundColor, children }: any) => {
const {
colors: { white },
} = useAppContext();

View file

@ -12,7 +12,7 @@ export const PageHeader: FC<PageHeaderProps> = ({
backgroundColor,
sx = {},
children,
}) => {
}: any) => {
const {
colors: { white },
} = useAppContext();

View file

@ -18,7 +18,7 @@ export default class LeafcutterDocument extends Document {
}
}
LeafcutterDocument.getInitialProps = async (ctx) => {
LeafcutterDocument.getInitialProps = async (ctx): Promise<any> => {
const originalRenderPage = ctx.renderPage;
const cache = createEmotionCache();
const { extractCriticalToChunks } = createEmotionServer(cache as any);