From ae20c917535aefd23d8dbcda7de83b720422ef81 Mon Sep 17 00:00:00 2001 From: d0422 Date: Wed, 6 Dec 2023 17:54:58 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[FE]=20Home=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EB=8F=8C=EC=95=84=EA=B0=80=EB=8A=94=20=EA=B2=BD=EC=9A=B0=20set?= =?UTF-8?q?ting=EC=9D=84=20Off=EB=A1=9C=20=EB=B3=80=EA=B2=BD=20Home?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EB=8F=8C=EC=95=84=EA=B0=80=EB=8A=94=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0=20setting=EC=9D=84=20Off=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontEnd/src/pages/Home.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontEnd/src/pages/Home.tsx b/frontEnd/src/pages/Home.tsx index 745dc14..fd49a90 100644 --- a/frontEnd/src/pages/Home.tsx +++ b/frontEnd/src/pages/Home.tsx @@ -1,11 +1,18 @@ +import { useEffect } from 'react'; import { v4 as uuidv4 } from 'uuid'; import { useNavigate } from 'react-router-dom'; import Button from '@/components/common/Button'; import useInput from '@/hooks/useInput'; +import useRoomConfigData from '@/stores/useRoomConfigData'; export default function Home() { const navigate = useNavigate(); const { inputValue, onChange } = useInput(''); + const { settingOff } = useRoomConfigData((state) => state.actions); + + useEffect(() => { + settingOff(); + }, []); const handleMakeRoomClick = () => { const roomId = uuidv4();