-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: 태그 전역상태 생성 및 핀 이름이 같을 경우 동시 삭제되던 오류 수정 * feat: SeveralSelectedTopics 페이지 구현 제 야무진 뻘짓을 기록합니다.... 혹시나 나중에 이 방식으로 쓰인다면 참고자료가 되길.... * refactor: 모아보기 API 명세에 맞게 GET 기능 구현 제 뻘짓을 만회합니다 * remove: 사용하지 않는 페이지 제거 * feat: 모아보기 버튼 클릭 시 모아보기에 추가 및 상태 표시 아이콘 추가 * design: 모아보기 카운터 UI 재배치 * feat: 모아보기 정책에 맞게 7개까지만 모아볼 수 있도록 변경 * feat: 모아보기 및 즐겨찾기 not focused 버튼 SVG 추가 * refactor: props drilling 으로 인한 불필요한 interface 제거 * remove: 불필요한 페이지 컴포넌트 제거 * design: 모아보기 추가 카운터 애니메이션 구현 * refactor: 불필요한 console.log 제거 * fix: id 타입 에러 수정 * refactor: 불필요한 fragment 제거 * style: 불필요한 개행 제거 * feat: 모아보기 토픽을 한번에 삭제하는 기능 추가 * design: 토스트 위치 수정 및 애니메이션 변경 * rename: SVG 파일 변경 * feat: delete API 추가 * refactor: 토픽 타입 변경으로 인한 수정 및 기능 추가 * refactor: post content type 추가 * refactor: 불필요한 console.log 제거 * refactor: 중복 로직 제거 및 메서드명 변경 * refactor: 기존 메서트 사용 및 불필요한 import 제거 * fix: topicCard 타입 변경된 인터페이스 적용 * feat: 로그인 오류 발생 시 toast 띄우는 에러핸들링 추가
- Loading branch information
1 parent
08b9f2c
commit 980748e
Showing
36 changed files
with
581 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export const deleteApi = async (url: string, contentType?: string) => { | ||
await fetch(`${process.env.REACT_APP_API_DEFAULT + url}`, { | ||
method: 'DELETE', | ||
headers: { | ||
Authorization: `Bearer ${localStorage.getItem('userToken') || ''}`, | ||
'Content-Type': contentType || 'application/json', | ||
}, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
export const postApi = (url: string, data: {}) => | ||
fetch(`${process.env.REACT_APP_API_DEFAULT + url}`, { | ||
export const postApi = async (url: string, data?: {}, contentType?: string) => { | ||
await fetch(`${process.env.REACT_APP_API_DEFAULT + url}`, { | ||
method: 'POST', | ||
headers: { | ||
'Content-type': 'application/json', | ||
'Content-type': `${contentType || 'application/json'}`, | ||
Authorization: `Bearer ${localStorage.getItem('userToken') || ''}`, | ||
}, | ||
body: JSON.stringify(data), | ||
}); | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.