Skip to content

Commit

Permalink
chore: rename task item component to Task
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaybadgujar102 committed Sep 10, 2024
1 parent 27b38bd commit 0e400e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/MyTimeComponents/MyTimeline/MyTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "./index.scss";
import { getTimePart } from "@src/utils";
import { updateImpossibleGoals } from "./updateImpossibleGoals";
import { useMyTimelineStore } from "./useMyTimelineStore";
import TaskItemComponent from "./TaskItem";
import Task from "./Task";

type ImpossibleTaskId = string;

Expand Down Expand Up @@ -51,7 +51,7 @@ export const MyTimeline: React.FC<MyTimelineProps> = ({ day, myTasks, taskDetail

return (
<React.Fragment key={task.taskid}>
<TaskItemComponent
<Task
task={task}
handleActionClick={handleActionClick}
isExpanded={showTaskOptions}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ITask, TaskAction } from "@src/Interfaces/Task";
import { TaskOptions } from "./TaskOptions";
import TaskTiming from "./TaskTiming";

interface TaskItemProps {
interface TaskProps {
task: ITask;
handleActionClick: (actionName: TaskAction, task: ITask) => Promise<void | null>;
isExpanded: boolean;
Expand All @@ -16,7 +16,7 @@ interface TaskItemProps {
taskDetails: { [goalid: string]: TaskItem };
}

const TaskItemComponent: React.FC<TaskItemProps> = ({
const Task: React.FC<TaskProps> = ({
task,
handleActionClick,
isExpanded,
Expand Down Expand Up @@ -54,4 +54,4 @@ const TaskItemComponent: React.FC<TaskItemProps> = ({
);
};

export default TaskItemComponent;
export default Task;

0 comments on commit 0e400e9

Please sign in to comment.