Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
타입 에러에서 시간이 생각보다 오래 걸렸습니다..
modal api 적용이 늦어져서 죄송합니다.
아래에 있는 기능 빼고는 테스트 했을 때 네트워크 응답에서 에러가 없었는데 문제가 생기면 최대한 빨리 수정하겠습니다.
hook을 삭제하고 파일을 수정해서 대시보드 추가, alert 모달 빼고는 사용방법이 달라졌습니다. 확인 부탁드립니다.
모달참고
수정하기 전 형태로 사용한 부분은 제가 일단 변경해두었는데 수정이 필요할 것 같습니다.
초대하기 모달
dashboard.{dashboardid} > components > Btn > Btn.tsx
제가 사용할 때 파일에서 타입 해결을 못하고 apiColumns, apiCards 에서 수정한 부분이 생겼습니다.
수정 후 에러는 없었는데 변경으로 문제되는 부분을 알려주시면 다시 수정하겠습니다.
-apiColumns
~ instance.
<>('/cards', body);부분에 경로를 cards에서 columns로 변경했습니다.
-apiCards
카드 정보를 가져와서 사용할 때 응답 타입이 안 맞다고 타입에러가 떠서 CardOverAll에 dashboardId: number;, teamId: string;를 추가했습니다.
export interface CardOverAll { id: number; title: string; description: string; tags: string[]; dueDate: string; assignee: { profileImageUrl?: string; nickname: string; id: number; }; imageUrl?: string; columnId: number; dashboardId: number; createdAt: string; updatedAt: string; teamId: string; }