Skip to content

Commit

Permalink
fix: prop 위치 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeminyi committed Jul 17, 2024
1 parent 9c9ff13 commit b8cdef0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/DashboardPage/DashboardTask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ function DashboardTask({ text }: DashboardTaskProps) {
status={task.status}
deadLine={task.deadLine}
selectedTarget={selectedTarget}
preventDoubleClick
handleSelectedTarget={handleSelectedTarget}
iconType="active"
/>
Expand Down
15 changes: 13 additions & 2 deletions src/components/common/BtnTask/BtnTask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ interface BtnTaskProps extends TaskType {
selectedTarget: TaskType | null;
iconType: 'stagingOrDelayed' | 'active';
btnStatus?: '진행중' | '미완료' | '완료' | '오늘로추가';
preventDoubleClick: boolean;
}

interface BorderColorProps {
Expand All @@ -28,8 +29,18 @@ interface BorderColorProps {
}

function BtnTask(props: BtnTaskProps) {
const { id, name, deadLine, hasDescription, status, handleSelectedTarget, selectedTarget, iconType, btnStatus } =
props;
const {
id,
name,
deadLine,
hasDescription,
status,
handleSelectedTarget,
selectedTarget,
iconType,
btnStatus,
preventDoubleClick,
} = props;
const [isModalOpen, setModalOpen] = useState(false);
const [isHovered, setIsHovered] = useState(false);

Expand Down

0 comments on commit b8cdef0

Please sign in to comment.