From 98d029dea0fe7d04d40052b4bc6bb9ad74757550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9E=84=EC=B1=84=EB=AF=BC?= <87525734+cmlim0070@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:11:27 +0900 Subject: [PATCH] =?UTF-8?q?chore=20:=20=EC=88=98=EC=A0=95=20=EC=83=81?= =?UTF-8?q?=ED=83=9C=EC=9D=98=20=EB=8B=AC=EB=A0=A5=20=EC=82=AD=EC=A0=9C=20?= =?UTF-8?q?&=20=EB=9D=BC=EB=B2=A8=20=EC=B6=94=EA=B0=80=20(#255)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entities/label/ui/EditLabe.styled.ts | 6 ++++++ src/entities/label/ui/EditLabel.tsx | 12 ++++++++++++ src/widgets/write-diary/ui/WriteDiaryContainer.tsx | 5 ++++- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 src/entities/label/ui/EditLabe.styled.ts create mode 100644 src/entities/label/ui/EditLabel.tsx diff --git a/src/entities/label/ui/EditLabe.styled.ts b/src/entities/label/ui/EditLabe.styled.ts new file mode 100644 index 0000000..115e956 --- /dev/null +++ b/src/entities/label/ui/EditLabe.styled.ts @@ -0,0 +1,6 @@ +import styled from 'styled-components'; + +export const Container = styled.div` + display: flex; + pointer-events: none; +`; diff --git a/src/entities/label/ui/EditLabel.tsx b/src/entities/label/ui/EditLabel.tsx new file mode 100644 index 0000000..9c26676 --- /dev/null +++ b/src/entities/label/ui/EditLabel.tsx @@ -0,0 +1,12 @@ +import Button from '@/shared/ui/Button/Button'; +import { Container } from './EditLabe.styled'; + +export const EditLabel = () => { + return ( + + + + ); +}; diff --git a/src/widgets/write-diary/ui/WriteDiaryContainer.tsx b/src/widgets/write-diary/ui/WriteDiaryContainer.tsx index 7acce42..832f1f5 100644 --- a/src/widgets/write-diary/ui/WriteDiaryContainer.tsx +++ b/src/widgets/write-diary/ui/WriteDiaryContainer.tsx @@ -16,6 +16,7 @@ import { DatePicker } from '@/widgets/date-picker'; import { DiaryVisibilityControls } from '@/widgets/diary-visibility-controls'; import { setDateFormat } from '@/widgets/date-picker/ui/setDateFormat'; import { useNavigate, useParams } from 'react-router-dom'; +import { EditLabel } from '@/entities/label/ui/EditLabel'; export const WriteDiaryContainer: React.FC = ({ initialDate = new Date(), // 초기 날짜가 없으면 오늘 날짜 사용 @@ -117,7 +118,9 @@ export const WriteDiaryContainer: React.FC = ({ : formatDateWithDot(date)} - {isEditing ? null : ( + {listType === 'edit' ? ( + + ) : (