diff --git a/public/delete-icon.svg b/public/delete-icon.svg deleted file mode 100644 index 23396cc3..00000000 --- a/public/delete-icon.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/public/edit-icon.svg b/public/edit-icon.svg deleted file mode 100644 index 50b046d0..00000000 --- a/public/edit-icon.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/components/common/icons/DeleteIcon.tsx b/src/components/common/icons/DeleteIcon.tsx new file mode 100644 index 00000000..77495fa3 --- /dev/null +++ b/src/components/common/icons/DeleteIcon.tsx @@ -0,0 +1,52 @@ +interface Props { + className?: string; +} + +const DeleteIcon = ({ className }: Props) => { + return ( + + + + + + + + + ); +}; + +export default DeleteIcon; diff --git a/src/components/common/icons/EditIcon.tsx b/src/components/common/icons/EditIcon.tsx new file mode 100644 index 00000000..da984d5b --- /dev/null +++ b/src/components/common/icons/EditIcon.tsx @@ -0,0 +1,31 @@ +interface Props { + className?: string; +} + +const EditIcon = ({ className }: Props) => { + return ( + + + + + ); +}; + +export default EditIcon; diff --git a/src/components/diary/detail/DiaryViewer.tsx b/src/components/diary/detail/DiaryViewer.tsx index 0877f658..29d054fd 100644 --- a/src/components/diary/detail/DiaryViewer.tsx +++ b/src/components/diary/detail/DiaryViewer.tsx @@ -1,3 +1,5 @@ +import DeleteIcon from "@/components/common/icons/DeleteIcon"; +import EditIcon from "@/components/common/icons/EditIcon"; import { FEELING_STATUS } from "@/constants/diary/feelingStatus"; import DiaryDeleteModalContainer from "@/containers/diary/detail/DiaryDeleteModalContainer"; import { GetDiaryResponseDto } from "@/types/DiaryDto"; @@ -97,17 +99,17 @@ const DiaryViewer = ({ />
- + 수정
diff --git a/src/components/informations/detail/ButtonList.tsx b/src/components/informations/detail/ButtonList.tsx index 1d1bc692..26ea308a 100644 --- a/src/components/informations/detail/ButtonList.tsx +++ b/src/components/informations/detail/ButtonList.tsx @@ -1,8 +1,8 @@ +import DeleteIcon from "@/components/common/icons/DeleteIcon"; +import EditIcon from "@/components/common/icons/EditIcon"; import InformationDeleteModalContainer from "@/containers/informations/detail/InformationDeleteModalContainer"; import Link from "next/link"; import { Dispatch, SetStateAction } from "react"; -import { FaRegTrashCan } from "react-icons/fa6"; -import { GoPencil } from "react-icons/go"; interface Props { visible: boolean; @@ -30,17 +30,17 @@ const ButtonList = ({ /> )} - + 수정 diff --git a/src/components/informations/write/ImageUploadItem.tsx b/src/components/informations/write/ImageUploadItem.tsx index b5241091..e61e97c4 100644 --- a/src/components/informations/write/ImageUploadItem.tsx +++ b/src/components/informations/write/ImageUploadItem.tsx @@ -65,9 +65,10 @@ const ImageUploadItem = ({