Skip to content

Commit 474e126

Browse files
authored
Merge pull request #227 from DDD-Community/hotfix/goal
hotfix: (레거시제거) 목표가 없을 때 deprecated 화면 제거
2 parents 38aa88c + 77c770d commit 474e126

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

src/feature/todo/todoList/components/TodoListEmpty.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
/** TodoList 빈 상태 컴포넌트 */
44
export const TodoListEmpty = () => {
55
return (
6-
<div className="flex flex-col items-center justify-center px-0 py-[16px]">
7-
<p className="text-[15px] font-normal text-[#878a93] leading-[1.6] tracking-[0.2175px] text-center">
8-
현재 등록된 투두가 없습니다.
9-
<br />
10-
새로운 투두를 만들어보세요!
11-
</p>
6+
<div className="flex flex-col gap-[28px] mt-[20px] mb-[20px]">
7+
<div className="flex flex-col items-center justify-center px-0 py-[16px]">
8+
<p className="text-[15px] font-normal text-[#878a93] leading-[1.6] tracking-[0.2175px] text-center">
9+
현재 등록된 투두가 없습니다.
10+
<br />
11+
새로운 투두를 만들어보세요!
12+
</p>
13+
</div>
1214
</div>
1315
);
1416
};

src/model/todo/planSelector/component.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,7 @@ export const PlanSelect = () => {
8484
};
8585

8686
export const PlanProvider = ({ children }: PlanProviderProps) => {
87-
const { isLoading, goalList, currentGoal } = useGoalSelector();
88-
89-
if ((!isLoading && goalList.length === 0) || !currentGoal) {
90-
return <CreateNewGoal />;
91-
}
87+
const { currentGoal } = useGoalSelector();
9288

9389
return <PlanSelectorProvider goal={currentGoal!}>{children}</PlanSelectorProvider>;
9490
};

0 commit comments

Comments
 (0)