From c25943ed5e4fa9de2f41947d26962d7ad61d8030 Mon Sep 17 00:00:00 2001 From: kimminna Date: Wed, 8 Jul 2026 00:10:15 +0900 Subject: [PATCH 1/5] =?UTF-8?q?feat(ui):=20=ED=97=A4=EB=8D=94/=ED=88=AC?= =?UTF-8?q?=EB=91=90=20=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8=20=EB=8B=A4?= =?UTF-8?q?=EA=B5=AD=EC=96=B4=20=EB=9D=BC=EB=B2=A8=20prop=20=EB=B0=8F=20?= =?UTF-8?q?=EC=95=84=EC=9D=B4=EC=BD=98=20=EC=A0=95=ED=95=A9=EC=84=B1=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20(#112)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - TodayButton, DropdownView에 label/placeholder 오버라이드용 prop을 추가했습니다 - PriorityIcon에 접근성용 label prop을 추가해 스크린리더에서 우선순위를 읽을 수 있게 했습니다 - AddTaskButton의 플러스 아이콘을 텍스트 색상과 일치하는 PlusGrayIcon으로 교체했습니다 --- .../src/components/button/add-task-button/AddTaskButton.tsx | 4 ++-- .../src/components/button/today-button/TodayButton.tsx | 2 +- .../src/components/dropdown-view/DropdownView.tsx | 4 ++-- .../src/components/priority/priority-icon/PriorityIcon.tsx | 6 +++++- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/packages/timo-design-system/src/components/button/add-task-button/AddTaskButton.tsx b/packages/timo-design-system/src/components/button/add-task-button/AddTaskButton.tsx index d22854a8..814c3b09 100644 --- a/packages/timo-design-system/src/components/button/add-task-button/AddTaskButton.tsx +++ b/packages/timo-design-system/src/components/button/add-task-button/AddTaskButton.tsx @@ -1,4 +1,4 @@ -import { PlusIcon } from "../../../icons"; +import { PlusGrayIcon } from "../../../icons"; import { cn } from "../../../lib"; export type AddTaskButtonVariant = "default" | "weekly" | "big"; @@ -32,7 +32,7 @@ export const AddTaskButton = ({ )} > - + diff --git a/packages/timo-design-system/src/components/dropdown-view/DropdownView.tsx b/packages/timo-design-system/src/components/dropdown-view/DropdownView.tsx index 76fd20ba..7d2cfa0a 100644 --- a/packages/timo-design-system/src/components/dropdown-view/DropdownView.tsx +++ b/packages/timo-design-system/src/components/dropdown-view/DropdownView.tsx @@ -20,11 +20,11 @@ export const DropdownView = ({ className, }: DropdownViewProps) => { return ( - + diff --git a/packages/timo-design-system/src/components/priority/priority-icon/PriorityIcon.tsx b/packages/timo-design-system/src/components/priority/priority-icon/PriorityIcon.tsx index 369da149..f4df4994 100644 --- a/packages/timo-design-system/src/components/priority/priority-icon/PriorityIcon.tsx +++ b/packages/timo-design-system/src/components/priority/priority-icon/PriorityIcon.tsx @@ -21,11 +21,15 @@ const PRIORITY_COLOR: Record = { export interface PriorityIconProps { priority: Priority; + label?: string; } -export const PriorityIcon = ({ priority }: PriorityIconProps) => { +export const PriorityIcon = ({ priority, label }: PriorityIconProps) => { return (
Date: Wed, 8 Jul 2026 00:11:11 +0900 Subject: [PATCH 2/5] =?UTF-8?q?feat(web):=20=ED=99=88/=ED=86=B5=EA=B3=84/?= =?UTF-8?q?=ED=83=80=EC=9E=84=EC=82=AC=EC=9D=B4=EB=93=9C=EB=B0=94=20?= =?UTF-8?q?=EB=8B=A4=EA=B5=AD=EC=96=B4(i18n)=20=ED=85=8D=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=20=EB=A7=A4=ED=95=91=20=EC=B6=94=EA=B0=80=20(#112)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 홈 헤더의 오늘/기본/7일/할 일 추가 텍스트를 Home 네임스페이스로 매핑했습니다 - 홈 투두 카드의 태그·우선순위 값을 고정 유니온 타입으로 정규화하고 Common 네임스페이스로 매핑했습니다 - 요일 표시를 Common.weekday 사전과 공용 getDayOfWeekKey 유틸로 통일했습니다 - 통계 헤더의 월 라벨을 로케일과 무관하게 영어 월 이름만 표시하도록 수정했습니다 --- .../home/_components/HomeTodoCard.tsx | 3 ++ .../home/_containers/HomeHeaderContainer.tsx | 31 +++++------- .../home/_containers/HomeTodoContainer.tsx | 48 +++++++++++++++---- .../home/_mocks/todo-mock.ts | 10 ++-- .../home/_types/todo-type.ts | 8 +++- .../(with-time-sidebar)/home/_utils/date.ts | 14 ------ .../_containers/StatisticsHeaderContainer.tsx | 3 +- .../layout/sidebar/time/TimeSidebarHeader.tsx | 10 ++-- apps/timo-web/messages/en.json | 30 ++++++++++++ apps/timo-web/messages/ko.json | 30 ++++++++++++ apps/timo-web/utils/get-day-of-week-key.ts | 15 ++++++ 11 files changed, 149 insertions(+), 53 deletions(-) create mode 100644 apps/timo-web/utils/get-day-of-week-key.ts diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_components/HomeTodoCard.tsx b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_components/HomeTodoCard.tsx index a1c525d0..b4db4793 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_components/HomeTodoCard.tsx +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_components/HomeTodoCard.tsx @@ -37,6 +37,7 @@ export interface HomeTodoCardProps { isCompleted: boolean; durationSeconds: number; priority: TodoPriorityTypes; + priorityLabel?: string; tagName?: string; hasMemo: boolean; isRepeated: boolean; @@ -53,6 +54,7 @@ export const HomeTodoCard = ({ isCompleted, durationSeconds, priority, + priorityLabel, tagName, hasMemo, isRepeated, @@ -125,6 +127,7 @@ export const HomeTodoCard = ({
{tagName && } {hasMemo && diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_containers/HomeHeaderContainer.tsx b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_containers/HomeHeaderContainer.tsx index f7ddc770..863dee73 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_containers/HomeHeaderContainer.tsx +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_containers/HomeHeaderContainer.tsx @@ -1,39 +1,30 @@ "use client"; +import { useTranslations } from "next-intl"; import { useState } from "react"; import { Header } from "@/components/layout/header/Header"; -import { useNavigationSidebar } from "@/components/layout/sidebar/navigation/NavigationSidebarContext"; - -const VIEW_OPTIONS = ["기본", "7일"] as const; - -type ViewOption = (typeof VIEW_OPTIONS)[number]; - -const isViewOption = (value: string): value is ViewOption => - (VIEW_OPTIONS as readonly string[]).includes(value); export const HomeHeaderContainer = () => { - const [view, setView] = useState(VIEW_OPTIONS[0]); - const { isOpen, toggle } = useNavigationSidebar(); + const t = useTranslations("Home"); + const basicLabel = t("viewBasic"); + const weekLabel = t("viewWeek"); + const viewOptions = [basicLabel, weekLabel]; + const [isWeekView, setIsWeekView] = useState(false); const handleChangeView = (value: string) => { - if (isViewOption(value)) { - setView(value); + if (value === basicLabel || value === weekLabel) { + setIsWeekView(value === weekLabel); } }; return (
- - - - } + left={} right={ } diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_containers/HomeTodoContainer.tsx b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_containers/HomeTodoContainer.tsx index 57b8ea46..0d523fe8 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_containers/HomeTodoContainer.tsx +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_containers/HomeTodoContainer.tsx @@ -1,19 +1,48 @@ "use client"; import { AddTaskButton } from "@repo/timo-design-system/ui"; +import { useTranslations } from "next-intl"; import { useState } from "react"; -import type { Todo } from "@/app/[locale]/(main)/(with-time-sidebar)/home/_types/todo-type"; +import type { + Todo, + TodoPriorityTypes, + TodoTagName, +} from "@/app/[locale]/(main)/(with-time-sidebar)/home/_types/todo-type"; import { HomeDateInformation } from "@/app/[locale]/(main)/(with-time-sidebar)/home/_components/HomeDateInformation"; import { HomeTodoCard } from "@/app/[locale]/(main)/(with-time-sidebar)/home/_components/HomeTodoCard"; import { todoMocks } from "@/app/[locale]/(main)/(with-time-sidebar)/home/_mocks/todo-mock"; -import { - convertDateToDateText, - convertDateToDayOfWeek, -} from "@/app/[locale]/(main)/(with-time-sidebar)/home/_utils/date"; +import { convertDateToDateText } from "@/app/[locale]/(main)/(with-time-sidebar)/home/_utils/date"; +import { getDayOfWeekKey } from "@/utils/get-day-of-week-key"; + +type TagLabelKey = + | "dailyLife" + | "work" + | "exercise" + | "assignment" + | "additional"; + +const TAG_LABEL_KEY: Record = { + DAILY_LIFE: "dailyLife", + WORK: "work", + EXERCISE: "exercise", + ASSIGNMENT: "assignment", + ADDITIONAL: "additional", +}; + +type PriorityLabelKey = "veryImportant" | "important" | "average" | "low"; + +const PRIORITY_LABEL_KEY: Record = { + URGENT: "veryImportant", + HIGH: "important", + MEDIUM: "average", + LOW: "low", +}; export const HomeTodoContainer = () => { + const t = useTranslations("Home"); + const tCommon = useTranslations("Common"); const [todos, setTodos] = useState(todoMocks); const today = new Date(); @@ -70,13 +99,13 @@ export const HomeTodoContainer = () => {
- +
@@ -90,7 +119,10 @@ export const HomeTodoContainer = () => { isCompleted={todo.completed} durationSeconds={todo.durationSeconds} priority={todo.priority} - tagName={todo.tag.name} + priorityLabel={tCommon( + `priority.${PRIORITY_LABEL_KEY[todo.priority]}`, + )} + tagName={tCommon(`tag.${TAG_LABEL_KEY[todo.tag.name]}`)} hasMemo={todo.hasMemo} isRepeated={todo.isRepeated} timerStatus={todo.timerStatus} diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_mocks/todo-mock.ts b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_mocks/todo-mock.ts index 41926977..8dad6cab 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_mocks/todo-mock.ts +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_mocks/todo-mock.ts @@ -8,7 +8,7 @@ export const todoMocks: Todo[] = [ completed: false, durationSeconds: 7200, priority: "HIGH", - tag: { tagId: 3, name: "업무" }, + tag: { tagId: 3, name: "WORK" }, hasMemo: false, isRepeated: true, timerStatus: "RUNNING", @@ -22,7 +22,7 @@ export const todoMocks: Todo[] = [ completed: false, durationSeconds: 5400, priority: "URGENT", - tag: { tagId: 1, name: "과제" }, + tag: { tagId: 1, name: "ASSIGNMENT" }, hasMemo: true, isRepeated: false, timerStatus: "STOPPED", @@ -42,7 +42,7 @@ export const todoMocks: Todo[] = [ completed: true, durationSeconds: 1800, priority: "LOW", - tag: { tagId: 4, name: "루틴" }, + tag: { tagId: 4, name: "EXERCISE" }, hasMemo: false, isRepeated: true, timerStatus: "STOPPED", @@ -56,7 +56,7 @@ export const todoMocks: Todo[] = [ completed: false, durationSeconds: 1800, priority: "MEDIUM", - tag: { tagId: 5, name: "자기계발" }, + tag: { tagId: 5, name: "ADDITIONAL" }, hasMemo: true, isRepeated: false, timerStatus: "STOPPED", @@ -70,7 +70,7 @@ export const todoMocks: Todo[] = [ completed: false, durationSeconds: 3600, priority: "MEDIUM", - tag: { tagId: 2, name: "일상" }, + tag: { tagId: 2, name: "DAILY_LIFE" }, hasMemo: false, isRepeated: false, timerStatus: "STOPPED", diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_types/todo-type.ts b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_types/todo-type.ts index 4ece60a4..027b888b 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_types/todo-type.ts +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_types/todo-type.ts @@ -1,9 +1,15 @@ export type TodoPriorityTypes = "URGENT" | "HIGH" | "MEDIUM" | "LOW"; export type TodoTimerStatusTypes = "RUNNING" | "STOPPED"; +export type TodoTagName = + | "DAILY_LIFE" + | "WORK" + | "EXERCISE" + | "ASSIGNMENT" + | "ADDITIONAL"; export interface TodoTag { tagId: number; - name: string; + name: TodoTagName; } export interface TodoSubtask { diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_utils/date.ts b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_utils/date.ts index 5e4716fc..d7315124 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_utils/date.ts +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_utils/date.ts @@ -1,17 +1,3 @@ -const DAY_OF_WEEK_LABELS = [ - "일요일", - "월요일", - "화요일", - "수요일", - "목요일", - "금요일", - "토요일", -]; - -export const convertDateToDayOfWeek = (date: Date): string => { - return DAY_OF_WEEK_LABELS[date.getDay()] ?? ""; -}; - export const convertDateToDateText = (date: Date): string => { const day = date.getDate(); diff --git a/apps/timo-web/app/[locale]/(main)/statistics/_containers/StatisticsHeaderContainer.tsx b/apps/timo-web/app/[locale]/(main)/statistics/_containers/StatisticsHeaderContainer.tsx index 136d84a2..8f978ff2 100644 --- a/apps/timo-web/app/[locale]/(main)/statistics/_containers/StatisticsHeaderContainer.tsx +++ b/apps/timo-web/app/[locale]/(main)/statistics/_containers/StatisticsHeaderContainer.tsx @@ -5,8 +5,7 @@ import { useState } from "react"; import { Header } from "@/components/layout/header/Header"; import { useNavigationSidebar } from "@/components/layout/sidebar/navigation/NavigationSidebarContext"; -const MONTH_LABEL_FORMATTER = new Intl.DateTimeFormat("ko-KR", { - year: "numeric", +const MONTH_LABEL_FORMATTER = new Intl.DateTimeFormat("en-US", { month: "long", }); diff --git a/apps/timo-web/components/layout/sidebar/time/TimeSidebarHeader.tsx b/apps/timo-web/components/layout/sidebar/time/TimeSidebarHeader.tsx index fbd32ec1..93b072a8 100644 --- a/apps/timo-web/components/layout/sidebar/time/TimeSidebarHeader.tsx +++ b/apps/timo-web/components/layout/sidebar/time/TimeSidebarHeader.tsx @@ -1,5 +1,10 @@ +"use client"; + import { SidebarButton } from "@repo/timo-design-system/ui"; import { cn } from "@repo/timo-design-system/utils"; +import { useTranslations } from "next-intl"; + +import { getDayOfWeekKey } from "@/utils/get-day-of-week-key"; export interface TimeSidebarHeaderProps { date: Date; @@ -12,11 +17,10 @@ export const TimeSidebarHeader = ({ isOpen = true, onToggleCollapse, }: TimeSidebarHeaderProps) => { + const t = useTranslations("Common"); const day = date.getDate(); - const weekday = new Intl.DateTimeFormat("ko-KR", { weekday: "long" }).format( - date, - ); + const weekday = t(`weekday.${getDayOfWeekKey(date)}`); return (
diff --git a/apps/timo-web/messages/en.json b/apps/timo-web/messages/en.json index aafb3a8a..3506a48e 100644 --- a/apps/timo-web/messages/en.json +++ b/apps/timo-web/messages/en.json @@ -5,5 +5,35 @@ "focus": "Focus Mode", "statistics": "Statistics", "settings": "Settings" + }, + "Common": { + "weekday": { + "sunday": "Sunday", + "monday": "Monday", + "tuesday": "Tuesday", + "wednesday": "Wednesday", + "thursday": "Thursday", + "friday": "Friday", + "saturday": "Saturday" + }, + "tag": { + "dailyLife": "Daily life", + "work": "Work", + "exercise": "Exercise", + "assignment": "Assignment", + "additional": "Additional" + }, + "priority": { + "veryImportant": "Very Important", + "important": "Important", + "average": "Average", + "low": "Low" + } + }, + "Home": { + "today": "Today", + "viewBasic": "Basic", + "viewWeek": "7 days", + "addTask": "Add a task" } } diff --git a/apps/timo-web/messages/ko.json b/apps/timo-web/messages/ko.json index cae27e6f..1071f6aa 100644 --- a/apps/timo-web/messages/ko.json +++ b/apps/timo-web/messages/ko.json @@ -5,5 +5,35 @@ "focus": "집중 모드", "statistics": "통계", "settings": "설정" + }, + "Common": { + "weekday": { + "sunday": "일요일", + "monday": "월요일", + "tuesday": "화요일", + "wednesday": "수요일", + "thursday": "목요일", + "friday": "금요일", + "saturday": "토요일" + }, + "tag": { + "dailyLife": "일상", + "work": "업무", + "exercise": "운동", + "assignment": "과제", + "additional": "기타" + }, + "priority": { + "veryImportant": "매우중요", + "important": "중요", + "average": "보통", + "low": "낮음" + } + }, + "Home": { + "today": "오늘", + "viewBasic": "기본", + "viewWeek": "7일", + "addTask": "할 일을 추가하세요" } } diff --git a/apps/timo-web/utils/get-day-of-week-key.ts b/apps/timo-web/utils/get-day-of-week-key.ts new file mode 100644 index 00000000..2e1d2f6b --- /dev/null +++ b/apps/timo-web/utils/get-day-of-week-key.ts @@ -0,0 +1,15 @@ +const DAY_OF_WEEK_KEYS = [ + "sunday", + "monday", + "tuesday", + "wednesday", + "thursday", + "friday", + "saturday", +] as const; + +export type DayOfWeekKey = (typeof DAY_OF_WEEK_KEYS)[number]; + +export const getDayOfWeekKey = (date: Date): DayOfWeekKey => { + return DAY_OF_WEEK_KEYS[date.getDay()] ?? "sunday"; +}; From e5ad2e224837e540a4953d582c2a0fbe6ba383cd Mon Sep 17 00:00:00 2001 From: kimminna Date: Wed, 8 Jul 2026 00:18:32 +0900 Subject: [PATCH 3/5] =?UTF-8?q?fix(web):=20=ED=99=88=20=ED=97=A4=EB=8D=94?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EB=88=84=EB=9D=BD=EB=90=9C=20=EC=82=AC?= =?UTF-8?q?=EC=9D=B4=EB=93=9C=EB=B0=94=20=ED=86=A0=EA=B8=80=20=EB=B2=84?= =?UTF-8?q?=ED=8A=BC=20=EB=B3=B5=EA=B5=AC=20(#112)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 리팩터링 과정에서 실수로 빠졌던 Header.SidebarButton과 useNavigationSidebar wiring을 다시 추가했습니다 --- .../home/_containers/HomeHeaderContainer.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_containers/HomeHeaderContainer.tsx b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_containers/HomeHeaderContainer.tsx index 863dee73..c275729e 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_containers/HomeHeaderContainer.tsx +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_containers/HomeHeaderContainer.tsx @@ -4,6 +4,7 @@ import { useTranslations } from "next-intl"; import { useState } from "react"; import { Header } from "@/components/layout/header/Header"; +import { useNavigationSidebar } from "@/components/layout/sidebar/navigation/NavigationSidebarContext"; export const HomeHeaderContainer = () => { const t = useTranslations("Home"); @@ -11,6 +12,7 @@ export const HomeHeaderContainer = () => { const weekLabel = t("viewWeek"); const viewOptions = [basicLabel, weekLabel]; const [isWeekView, setIsWeekView] = useState(false); + const { isOpen, toggle } = useNavigationSidebar(); const handleChangeView = (value: string) => { if (value === basicLabel || value === weekLabel) { @@ -20,7 +22,12 @@ export const HomeHeaderContainer = () => { return (
} + left={ + <> + + + + } right={ Date: Wed, 8 Jul 2026 00:26:57 +0900 Subject: [PATCH 4/5] =?UTF-8?q?fix(web):=20=ED=86=B5=EA=B3=84=20=ED=97=A4?= =?UTF-8?q?=EB=8D=94=20=EC=9B=94=20=EB=9D=BC=EB=B2=A8=20=EA=B3=A0=EC=A0=95?= =?UTF-8?q?=20=EB=84=88=EB=B9=84=EB=A5=BC=20=ED=85=8D=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EA=B8=B8=EC=9D=B4=EC=97=90=20=EB=A7=9E=EA=B2=8C=20=EC=A1=B0?= =?UTF-8?q?=EC=A0=95=20(#112)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - WeeklyNav 라벨 너비를 w-25에서 w-17로 좁혀 화살표 버튼과의 간격을 맞췄습니다 --- apps/timo-web/components/layout/header/Header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/timo-web/components/layout/header/Header.tsx b/apps/timo-web/components/layout/header/Header.tsx index 5ace3dcd..ab9c40b5 100644 --- a/apps/timo-web/components/layout/header/Header.tsx +++ b/apps/timo-web/components/layout/header/Header.tsx @@ -41,7 +41,7 @@ const HeaderWeeklyNav = ({ onPrev, onNext, label }: HeaderWeeklyNavProps) => {
{label && ( - + {label} )} From a3ee14f3e261753bdbf013120a35b501394d6dff Mon Sep 17 00:00:00 2001 From: kimminna Date: Wed, 8 Jul 2026 16:41:28 +0900 Subject: [PATCH 5/5] =?UTF-8?q?refactor(web):=20=ED=99=88=20=ED=88=AC?= =?UTF-8?q?=EB=91=90=20=EB=9D=BC=EB=B2=A8=20=ED=83=80=EC=9E=85=20=EB=B3=84?= =?UTF-8?q?=EC=B9=AD=20=EB=84=A4=EC=9D=B4=EB=B0=8D=20=EC=A0=95=EB=A6=AC=20?= =?UTF-8?q?(#112)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - TagLabelKey, PriorityLabelKey 타입 별칭명을 TagLabelKeyTypes, PriorityLabelKeyTypes로 변경했습니다 --- .../home/_containers/HomeTodoContainer.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_containers/HomeTodoContainer.tsx b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_containers/HomeTodoContainer.tsx index 0d523fe8..f355e55d 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_containers/HomeTodoContainer.tsx +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_containers/HomeTodoContainer.tsx @@ -16,14 +16,14 @@ import { todoMocks } from "@/app/[locale]/(main)/(with-time-sidebar)/home/_mocks import { convertDateToDateText } from "@/app/[locale]/(main)/(with-time-sidebar)/home/_utils/date"; import { getDayOfWeekKey } from "@/utils/get-day-of-week-key"; -type TagLabelKey = +type TagLabelKeyTypes = | "dailyLife" | "work" | "exercise" | "assignment" | "additional"; -const TAG_LABEL_KEY: Record = { +const TAG_LABEL_KEY: Record = { DAILY_LIFE: "dailyLife", WORK: "work", EXERCISE: "exercise", @@ -31,9 +31,9 @@ const TAG_LABEL_KEY: Record = { ADDITIONAL: "additional", }; -type PriorityLabelKey = "veryImportant" | "important" | "average" | "low"; +type PriorityLabelKeyTypes = "veryImportant" | "important" | "average" | "low"; -const PRIORITY_LABEL_KEY: Record = { +const PRIORITY_LABEL_KEY: Record = { URGENT: "veryImportant", HIGH: "important", MEDIUM: "average",