mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 10:19:10 +00:00
add router data to header
This commit is contained in:
parent
456da9cd0c
commit
73f60cbd3d
4 changed files with 23 additions and 13 deletions
|
@ -56,7 +56,11 @@ class RoleypolyApp extends App {
|
|||
catchFOUC () {
|
||||
setTimeout(() => {
|
||||
if (document.documentElement) document.documentElement.className += ' force-active'
|
||||
}, 1500)
|
||||
}, 700)
|
||||
}
|
||||
|
||||
componentDidMount () {
|
||||
this.catchFOUC()
|
||||
}
|
||||
|
||||
render () {
|
||||
|
@ -87,7 +91,7 @@ class RoleypolyApp extends App {
|
|||
` }} />
|
||||
</Head>
|
||||
<Provider store={store}>
|
||||
<Layout user={user} {...layout}>
|
||||
<Layout user={user} {...layout} router={router}>
|
||||
<ErrorCaughtComponent {...pageProps} router={router} originalName={Component.displayName || Component.constructor.name} />
|
||||
</Layout>
|
||||
</Provider>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue