Team switcher
This commit is contained in:
@ -13,10 +13,11 @@ import theme from '../../shared/styles/theme';
|
||||
const sheet = new ServerStyleSheet();
|
||||
|
||||
export default function renderpage(ctx: Object, children: React.Node) {
|
||||
const sessions = JSON.parse(ctx.cookies.get('sessions') || '{}');
|
||||
const html = ReactDOMServer.renderToString(
|
||||
<StyleSheetManager sheet={sheet.instance}>
|
||||
<ThemeProvider theme={theme}>
|
||||
<Layout>{children}</Layout>
|
||||
<Layout sessions={sessions}>{children}</Layout>
|
||||
</ThemeProvider>
|
||||
</StyleSheetManager>
|
||||
);
|
||||
|
Reference in New Issue
Block a user