We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6757a99 + 92d76fa commit 7069a2aCopy full SHA for 7069a2a
src/components/common/Icon/Icon.tsx
@@ -1,3 +1,5 @@
1
+'use client';
2
+
3
import { ReactElement, useMemo } from 'react';
4
import dynamic from 'next/dynamic';
5
@@ -14,7 +16,7 @@ export const Icon = ({
14
16
}: IconProps): ReactElement => {
15
17
const IconComponent = useMemo(
18
(): DynamicIconReturnType =>
- dynamic(() => import(`@/assets/icons/${name}.svg`)),
19
+ dynamic(() => import(`@/assets/icons/${name}.svg`), { ssr: false }),
20
[name]
21
);
22
0 commit comments