From 5fc6d1a3feb6cbfd767c4e655151d565c5066cc6 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 22 Dec 2021 08:19:27 -0800 Subject: [PATCH] Fixes issue with next/dynamic when running next version > 12.0.3 (#618) Co-authored-by: mdupree --- components/common/Layout/Layout.tsx | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/components/common/Layout/Layout.tsx b/components/common/Layout/Layout.tsx index a69cd75368..adf323f2cb 100644 --- a/components/common/Layout/Layout.tsx +++ b/components/common/Layout/Layout.tsx @@ -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 {