From 43f46fea19fdcb7c530258c1bcf10ece7305d062 Mon Sep 17 00:00:00 2001 From: afds4567 <33995840+afds4567@users.noreply.github.com> Date: Wed, 16 Aug 2023 20:54:09 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=97=90=EB=9F=AC=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=20(#321)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/apis/getApi.ts | 1 - frontend/src/components/MyInfo/index.tsx | 14 ++------------ frontend/src/components/common/CheckBox/index.tsx | 1 - frontend/src/pages/NewTopic.tsx | 3 --- frontend/src/pages/PinDetail.tsx | 1 - 5 files changed, 2 insertions(+), 18 deletions(-) diff --git a/frontend/src/apis/getApi.ts b/frontend/src/apis/getApi.ts index 5c359406..bb3a5d81 100644 --- a/frontend/src/apis/getApi.ts +++ b/frontend/src/apis/getApi.ts @@ -17,7 +17,6 @@ export const getApi = async ( 'Content-Type': 'application/json', }; - console.log(headers); if (userToken) { headers['Authorization'] = `Bearer ${userToken}`; } diff --git a/frontend/src/components/MyInfo/index.tsx b/frontend/src/components/MyInfo/index.tsx index c3d79504..f9ac9efa 100644 --- a/frontend/src/components/MyInfo/index.tsx +++ b/frontend/src/components/MyInfo/index.tsx @@ -1,13 +1,11 @@ import { styled } from 'styled-components'; import Flex from '../common/Flex'; -import InfoDefalutImg from '../../assets/InfoDefalutImg.svg'; -import ModifyMyInfoIcon from '../../assets/ModifyMyInfoIcon.svg'; import Box from '../common/Box'; import Text from '../common/Text'; import Space from '../common/Space'; -import { useEffect, useState } from 'react'; -import UpdateMyInfo from './updateMyInfo'; +import { useState } from 'react'; import { MyInfoType } from '../../types/MyInfo'; +import UpdateMyInfo from './UpdateMyInfo'; const MyInfo = () => { const [isThereImg, setisThereImg] = useState(true); @@ -18,14 +16,6 @@ const MyInfo = () => { }); const user = JSON.parse(localStorage.getItem('user') || ''); - // useEffect(()=>{ - // setMyInfoName() - // }, []) - - const onModifyInfo = () => { - setIsModifyMyInfo(true); - }; - if (isModifyMyInfo) { return ( { const updatedChecked = !isChecked; - console.log(updatedChecked); setIsChecked(updatedChecked); onChecked(updatedChecked, id); }; diff --git a/frontend/src/pages/NewTopic.tsx b/frontend/src/pages/NewTopic.tsx index c73903f5..fa2d0884 100644 --- a/frontend/src/pages/NewTopic.tsx +++ b/frontend/src/pages/NewTopic.tsx @@ -90,7 +90,6 @@ const NewTopic = () => { //생성하기 버튼 눌렀을 때 postToServer로 TopicId 받고, 받은 topicId로 권한 추가 const topicId = await postToServer(); - const result = await addAuthority(topicId); if (topicId) routePage(`/topics/${topicId}`); }; @@ -100,11 +99,9 @@ const NewTopic = () => { ? await mergeTopics() : await createTopic(); const location = response.headers.get('Location'); - console.log('LOCATION', location, response.headers); if (location) { const topicIdFromLocation = location.split('/')[2]; - console.log('topic', topicIdFromLocation); return topicIdFromLocation; } }; diff --git a/frontend/src/pages/PinDetail.tsx b/frontend/src/pages/PinDetail.tsx index bbbfbc71..512142e1 100644 --- a/frontend/src/pages/PinDetail.tsx +++ b/frontend/src/pages/PinDetail.tsx @@ -54,7 +54,6 @@ const PinDetail = ({ return topicAuthority.data; }; const topicAuthorityList = checkTopicAuthority(); - console.log(topicAuthorityList); }, [topicId]); useEffect(() => {