fix help page not correctly injecting all AppShellProps

This commit is contained in:
41666 2022-02-01 01:28:35 -05:00
parent 7ba0b6316e
commit 5404047bd2

View file

@ -6,8 +6,8 @@ export type HelpPageProps = AppShellProps & {
children: React.ReactNode; children: React.ReactNode;
}; };
export const HelpPageTemplate = (props: HelpPageProps) => ( export const HelpPageTemplate = ({ children, ...appShellProps }: HelpPageProps) => (
<AppShell guilds={props.guilds} user={props.user || undefined}> <AppShell {...appShellProps}>
<HelpPageBase>{props.children}</HelpPageBase> <HelpPageBase>{children}</HelpPageBase>
</AppShell> </AppShell>
); );