Skip to content

Commit

Permalink
Fixes issue with next/dynamic when running next version > 12.0.3 (ver…
Browse files Browse the repository at this point in the history
…cel#618)

Co-authored-by: mdupree <[email protected]>
  • Loading branch information
MikeDupree and mdupree authored Dec 22, 2021
1 parent 983f82f commit 5fc6d1a
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions components/common/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,31 @@ const dynamicProps = {

const SignUpView = dynamic(
() => import('@components/auth/SignUpView'),
dynamicProps
{
...dynamicProps
}
)

const ForgotPassword = dynamic(
() => import('@components/auth/ForgotPassword'),
dynamicProps
{
...dynamicProps
}
)

const FeatureBar = dynamic(
() => import('@components/common/FeatureBar'),
dynamicProps
{
...dynamicProps
}
)

const Modal = dynamic(
() => import('@components/ui/Modal'),
Object.assign(dynamicProps, { ssr: false })
{
...dynamicProps,
ssr: false
}
)

interface Props {
Expand Down

0 comments on commit 5fc6d1a

Please sign in to comment.