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;
};
export const HelpPageTemplate = (props: HelpPageProps) => (
<AppShell guilds={props.guilds} user={props.user || undefined}>
<HelpPageBase>{props.children}</HelpPageBase>
export const HelpPageTemplate = ({ children, ...appShellProps }: HelpPageProps) => (
<AppShell {...appShellProps}>
<HelpPageBase>{children}</HelpPageBase>
</AppShell>
);