From 4f061a95ee575caeb69a68e0c784e1d947c5b1d6 Mon Sep 17 00:00:00 2001 From: MinboyKim Date: Mon, 4 Dec 2023 18:56:17 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Nickname=20bug=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 닉네임 모달 버그 수정 --- packages/client/src/shared/ui/inputBar/InputBar.tsx | 2 +- .../client/src/widgets/nickNameSetModal/NickNameSetModal.tsx | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/client/src/shared/ui/inputBar/InputBar.tsx b/packages/client/src/shared/ui/inputBar/InputBar.tsx index 842795c..86f9d1e 100644 --- a/packages/client/src/shared/ui/inputBar/InputBar.tsx +++ b/packages/client/src/shared/ui/inputBar/InputBar.tsx @@ -33,7 +33,7 @@ export default function InputBar({ const Container = styled.div` display: flex; flex-direction: column; - /* width: 100%; */ + width: 100%; `; const Input = styled.input` diff --git a/packages/client/src/widgets/nickNameSetModal/NickNameSetModal.tsx b/packages/client/src/widgets/nickNameSetModal/NickNameSetModal.tsx index f16a01a..1f3a604 100644 --- a/packages/client/src/widgets/nickNameSetModal/NickNameSetModal.tsx +++ b/packages/client/src/widgets/nickNameSetModal/NickNameSetModal.tsx @@ -11,18 +11,17 @@ export default function NickNameSetModal() { const [validNickName, setValidNickName] = useState(''); const navigate = useNavigate(); const { platform } = useParams(); + const { setText } = useToastStore(); + const { id, pw } = useSignUpStore(); useCheckLogin(); const handleSaveButton = async () => { // TODO: 소셜로그인 시 로직 따로 추가해야 함 - const { setText } = useToastStore(); - try { let response; if (!platform) { - const { id, pw } = useSignUpStore(); response = await postSignUp({ username: id, password: pw,