feat(pass pageprops to loginpage): pass page props to loginPage

pull/8/head
Alexander Zoitos 4 years ago
parent 7d179ae3b4
commit 159718891f

@ -8,7 +8,7 @@ class CoreApp extends App {
public render(): JSX.Element { public render(): JSX.Element {
const { Component, pageProps, router } = this.props; const { Component, pageProps, router } = this.props;
if (router.asPath == '/login') { if (router.asPath == '/login') {
return <LoginPage />; return <LoginPage {...pageProps} />;
} else { } else {
return ( return (
<Layout> <Layout>

Loading…
Cancel
Save