Skip to content

Commit 2e2496f

Browse files
committed
dynamic import removed
1 parent 726ba8f commit 2e2496f

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

app/page.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
import { TYPEWRITER_WORDS } from '@/constants';
22
import About from '@/components/home/About';
33
import Name from '@/components/home/Name';
4-
import { memo, Suspense } from 'react';
5-
import dynamic from 'next/dynamic';
4+
import { memo } from 'react';
65
import Image from 'next/image';
7-
8-
const TypewriterEffect = dynamic(() => import('@/components/ui/typewriter-effect'), {
9-
ssr: false
10-
});
6+
import TypewriterEffect from '@/components/ui/typewriter-effect';
117

128

139
const HomePage = () => {
@@ -32,9 +28,7 @@ const HomePage = () => {
3228
<Name />
3329
</header>
3430
<article>
35-
<Suspense>
36-
<TypewriterEffect words={TYPEWRITER_WORDS} />
37-
</Suspense>
31+
<TypewriterEffect words={TYPEWRITER_WORDS} />
3832
</article>
3933
</div>
4034
</div>

0 commit comments

Comments
 (0)