From 962afb46696e2482899882d6cda77e7102b10842 Mon Sep 17 00:00:00 2001 From: Lee-Dongwook Date: Sat, 26 Oct 2024 17:28:26 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20use=20client=20=EC=A0=81=EC=9A=A9=20?= =?UTF-8?q?=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/atoms/Avatar.tsx | 1 + src/components/atoms/Input.tsx | 1 + src/components/atoms/Select.tsx | 1 + src/components/containers/ChatContainer.tsx | 1 + src/components/containers/DashboardContainer.tsx | 1 + src/components/containers/UserProfileContainer.tsx | 1 + src/components/molecules/UserCard.tsx | 1 + src/components/organisms/AuthLayout.tsx | 1 + src/components/organisms/ChatLayout.tsx | 2 ++ src/components/organisms/DashboardLayout.tsx | 1 + src/components/organisms/UserProfileLayout.tsx | 1 + 11 files changed, 12 insertions(+) diff --git a/src/components/atoms/Avatar.tsx b/src/components/atoms/Avatar.tsx index df1e895..7d5d0d1 100644 --- a/src/components/atoms/Avatar.tsx +++ b/src/components/atoms/Avatar.tsx @@ -1,3 +1,4 @@ +'use client'; import React from 'react'; import Image from 'next/image'; diff --git a/src/components/atoms/Input.tsx b/src/components/atoms/Input.tsx index f79915d..80e2ba3 100644 --- a/src/components/atoms/Input.tsx +++ b/src/components/atoms/Input.tsx @@ -1,3 +1,4 @@ +'use client'; import React from 'react'; interface InputProps { diff --git a/src/components/atoms/Select.tsx b/src/components/atoms/Select.tsx index 893963a..b7746b6 100644 --- a/src/components/atoms/Select.tsx +++ b/src/components/atoms/Select.tsx @@ -1,3 +1,4 @@ +'use client'; import React from 'react'; interface SelectProps extends React.SelectHTMLAttributes { diff --git a/src/components/containers/ChatContainer.tsx b/src/components/containers/ChatContainer.tsx index e69de29..ef4af0a 100644 --- a/src/components/containers/ChatContainer.tsx +++ b/src/components/containers/ChatContainer.tsx @@ -0,0 +1 @@ +'use client'; diff --git a/src/components/containers/DashboardContainer.tsx b/src/components/containers/DashboardContainer.tsx index e69de29..ef4af0a 100644 --- a/src/components/containers/DashboardContainer.tsx +++ b/src/components/containers/DashboardContainer.tsx @@ -0,0 +1 @@ +'use client'; diff --git a/src/components/containers/UserProfileContainer.tsx b/src/components/containers/UserProfileContainer.tsx index 41b3392..547d386 100644 --- a/src/components/containers/UserProfileContainer.tsx +++ b/src/components/containers/UserProfileContainer.tsx @@ -1,3 +1,4 @@ +'use client'; import React from 'react'; import { Spinner } from '@/components/atoms/Spinner'; import { UserProfileLayout } from '@/components/organisms/UserProfileLayout'; diff --git a/src/components/molecules/UserCard.tsx b/src/components/molecules/UserCard.tsx index 40f1aa7..344e8ac 100644 --- a/src/components/molecules/UserCard.tsx +++ b/src/components/molecules/UserCard.tsx @@ -1,3 +1,4 @@ +'use client'; import React from 'react'; import { Timestamp } from 'firebase/firestore'; import { Avatar } from '@/components/atoms/Avatar'; diff --git a/src/components/organisms/AuthLayout.tsx b/src/components/organisms/AuthLayout.tsx index fcd7543..62efb59 100644 --- a/src/components/organisms/AuthLayout.tsx +++ b/src/components/organisms/AuthLayout.tsx @@ -1,3 +1,4 @@ +'use client'; import React from 'react'; import { AuthContainer } from '@/components/containers/AuthContainer'; diff --git a/src/components/organisms/ChatLayout.tsx b/src/components/organisms/ChatLayout.tsx index e69de29..54bc7bc 100644 --- a/src/components/organisms/ChatLayout.tsx +++ b/src/components/organisms/ChatLayout.tsx @@ -0,0 +1,2 @@ +'use client'; +import React, { useState } from 'react'; diff --git a/src/components/organisms/DashboardLayout.tsx b/src/components/organisms/DashboardLayout.tsx index e69de29..ef4af0a 100644 --- a/src/components/organisms/DashboardLayout.tsx +++ b/src/components/organisms/DashboardLayout.tsx @@ -0,0 +1 @@ +'use client'; diff --git a/src/components/organisms/UserProfileLayout.tsx b/src/components/organisms/UserProfileLayout.tsx index 3c7dcff..a1a04a1 100644 --- a/src/components/organisms/UserProfileLayout.tsx +++ b/src/components/organisms/UserProfileLayout.tsx @@ -1,3 +1,4 @@ +'use client'; import React, { useState } from 'react'; import { Button } from '@/components/atoms/Button'; import { Input } from '@/components/atoms/Input';