Skip to content

Commit

Permalink
FE-72๐Ÿ“ TODO์ฃผ์„ ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
  • Loading branch information
์šฐ์ง€์„ committed Jul 22, 2024
1 parent cbcd049 commit c979b82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hooks/epigramQueryHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { MutationOptions } from '@/types/query';
import postEpigram from '@/apis/add';
import { AxiosError } from 'axios';

// TODO: ์—ํ”ผ๊ทธ๋žจ ์ˆ˜์ •๊ณผ ์‚ญ์ œ์—๋„ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•˜๊ฒŒ ํ›… ์ˆ˜์ • ์˜ˆ์ •

const useAddEpigram = (options?: MutationOptions<AddEpigramFormType, AddEpigramResponseType>) => {
const queryClient = useQueryClient();

Expand Down
3 changes: 3 additions & 0 deletions src/pageLayout/Epigram/AddEpigram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function AddEpigram() {
setIsAlertOpen(true);
form.reset();
},
// TODO : ์œ ํšจ์„ฑ๊ฒ€์‚ฌ ๋ธŒ๋žœ์น˜๋งŒ๋“ค์–ด์„œ alert์ฐฝ์— ์œ ํšจ์„ฑ๊ฒ€์‚ฌ ํ‹€๋ฆฐ๋ถ€๋ถ„์„ ๋ณด์ด๊ฒŒ ํ•  ์˜ˆ์ •
onError: () => {
setAlertContent({
title: '๋“ฑ๋ก ์‹คํŒจ',
Expand Down Expand Up @@ -226,6 +227,8 @@ function AddEpigram() {
์ €์žฅ
</Button>
</div>
{/* TODO: ํƒœ๊ทธ key๊ฐ’ ์ˆ˜์ • ์˜ˆ์ • */}
{/* NOTE: ์ง€๊ธˆ์€ ๋˜‘๊ฐ™์€ ํƒœ๊ทธ๋ฅผ ์ž…๋ ฅํ–ˆ์„๋•Œ ํ•˜๋‚˜๋ฅผ ์ง€์šฐ๋ฉด ๋‹ค ์ง€์›Œ์ง */}
<div className='flex flex-wrap gap-2 mt-2'>
{field.value.map((tag) => (
<div key={tag} className='bg-blue-100 px-2 py-1 rounded-full flex items-center'>
Expand Down

0 comments on commit c979b82

Please sign in to comment.