Skip to content

Commit

Permalink
Added initial task story
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniebigodes committed Dec 22, 2023
1 parent 6b9ff97 commit efe1ea4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/components/Task.stories.jsx
@@ -0,0 +1,21 @@
import Task from "./Task";

export default {
component: Task,
title: "Task",
argTypes: {
onArchiveTask: { action: "onArchiveTask" },
onTogglePinTask: { action: "onTogglePinTask" },
onEditTitle: { action: "onEditTitle" },
},
};

export const Default = {
args: {
task: {
id: "1",
title: "Buy milk",
state: "TASK_INBOX",
},
},
};

0 comments on commit efe1ea4

Please sign in to comment.