Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 에러 수정 #321

Merged
merged 1 commit into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion frontend/src/apis/getApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const getApi = async <T>(
'Content-Type': 'application/json',
};

console.log(headers);
if (userToken) {
headers['Authorization'] = `Bearer ${userToken}`;
}
Expand Down
14 changes: 2 additions & 12 deletions frontend/src/components/MyInfo/index.tsx
Original file line number Diff line number Diff line change
@@ -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<boolean>(true);
Expand All @@ -18,14 +16,6 @@ const MyInfo = () => {
});
const user = JSON.parse(localStorage.getItem('user') || '');

// useEffect(()=>{
// setMyInfoName()
// }, [])

const onModifyInfo = () => {
setIsModifyMyInfo(true);
};

if (isModifyMyInfo) {
return (
<UpdateMyInfo
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/common/CheckBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const Checkbox = ({

const updateCheckedMembers = () => {
const updatedChecked = !isChecked;
console.log(updatedChecked);
setIsChecked(updatedChecked);
onChecked(updatedChecked, id);
};
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/pages/NewTopic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ const NewTopic = () => {
//생성하기 버튼 눌렀을 때 postToServer로 TopicId 받고, 받은 topicId로 권한 추가
const topicId = await postToServer();

const result = await addAuthority(topicId);
if (topicId) routePage(`/topics/${topicId}`);
};

Expand All @@ -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;
}
};
Expand Down
1 change: 0 additions & 1 deletion frontend/src/pages/PinDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const PinDetail = ({
return topicAuthority.data;
};
const topicAuthorityList = checkTopicAuthority();
console.log(topicAuthorityList);
}, [topicId]);

useEffect(() => {
Expand Down
Loading