Skip to content

Commit 6a337af

Browse files
committed
Task stories finalized and UI changes
1 parent efe1ea4 commit 6a337af

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

src/components/Task.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default function Task({
5050
aria-label={state === "TASK_PINNED" ? "unpin" : "pin"}
5151
key={`pinTask-${id}`}
5252
>
53-
<span className={`icon-bell`} />
53+
<span className={`icon-star`} />
5454
</button>
5555
)}
5656
</div>

src/components/Task.stories.jsx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,35 @@ export const Default = {
1919
},
2020
},
2121
};
22+
23+
export const Pinned = {
24+
args: {
25+
task: {
26+
id: "2",
27+
title: "QA dropdown",
28+
state: "TASK_PINNED",
29+
},
30+
},
31+
};
32+
33+
export const Archived = {
34+
args: {
35+
task: {
36+
id: "3",
37+
title: "Write schema for account menu",
38+
state: "TASK_ARCHIVED",
39+
},
40+
},
41+
};
42+
43+
const longTitleString = `This task's name is absurdly large. In fact, I think if I keep going I might end up with content overflow. What will happen? The star that represents a pinned task could have text overlapping. The text could cut-off abruptly when it reaches the star. I hope not!`;
44+
45+
export const LongTitle = {
46+
args: {
47+
task: {
48+
id: "4",
49+
title: longTitleString,
50+
state: "TASK_INBOX",
51+
},
52+
},
53+
};

0 commit comments

Comments
 (0)