From 63c0e43c439be9c6a69a062f47b4485dd50bbb83 Mon Sep 17 00:00:00 2001 From: yeonddori Date: Sun, 12 Jan 2025 17:35:21 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=8C=80=20=EC=9D=B4=EB=AF=B8=EC=A7=80?= =?UTF-8?q?=20=EC=82=AD=EC=A0=9C=20=EB=B2=84=ED=8A=BC=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #378 --- src/containers/team/TeamModal/index.tsx | 34 +++++++++++++++++++------ 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/src/containers/team/TeamModal/index.tsx b/src/containers/team/TeamModal/index.tsx index b7938aac..e5fed876 100644 --- a/src/containers/team/TeamModal/index.tsx +++ b/src/containers/team/TeamModal/index.tsx @@ -1,8 +1,8 @@ 'use client'; -import { Flex, Text, Textarea, Image } from '@chakra-ui/react'; +import { Flex, Text, Textarea, Image, IconButton, Box } from '@chakra-ui/react'; import { useEffect, useRef, useState } from 'react'; -import { BiEdit, BiFile } from 'react-icons/bi'; +import { BiEdit, BiFile, BiTrash } from 'react-icons/bi'; import { patchEditTeamImage, postCreateTeam, putEditTeam } from '@/app/api/team'; import IconBox from '@/components/IconBox'; @@ -189,12 +189,30 @@ const TeamModal = ({ teamInfo, isOpen, onClose }: TeamModalProps) => { } }} /> - } - rightIcon={} - content={thumbnail ? thumbnail.name : '파일을 추가해주세요.'} - handleClick={() => inputFileRef.current?.click()} - /> + + + } + rightIcon={} + content={thumbnail ? thumbnail.name : '파일을 추가해주세요.'} + handleClick={() => inputFileRef.current?.click()} + /> + + } + onClick={() => { + setThumbnail(null); + setThumbnailPath(''); + }} + size="icon_md" + variant="orange_light" + /> + {thumbnailPath ? ( thumbnail ) : (