Skip to content

Commit

Permalink
✨ : #345 - useWritablePlan에서 계획 수정 data에 대한 type => EditPlanData로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
MinwooP committed Dec 29, 2023
1 parent 504418d commit 3c55e0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useWritablePlan.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { PlanContentType } from '@/types/Plan';
import { EditPlanData } from '@/types/apis/plan/EditPlan';
import { PlanData } from '@/types/apis/plan/GetPlan';
import { useRef, useState } from 'react';

export const useWritablePlan = (planData: PlanData) => {
const [planContent, setPlanContent] = useState<PlanContentType>({
const [planContent, setPlanContent] = useState<EditPlanData>({
iconNumber: planData.icon,
title: planData.title,
description: planData.description,
Expand Down
1 change: 0 additions & 1 deletion src/types/Plan.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export type PlanContentType = {
iconNumber: number;
title: string;
description: string;
tags: string[];
Expand Down

0 comments on commit 3c55e0a

Please sign in to comment.