Skip to content

Commit b82acec

Browse files
committed
Adds variants to storybook
1 parent 7f7cdc5 commit b82acec

File tree

1 file changed

+8
-1
lines changed
  • apps/webapp/app/routes/storybook.run-and-span-timeline

1 file changed

+8
-1
lines changed

apps/webapp/app/routes/storybook.run-and-span-timeline/route.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,23 @@ const spanTimelines = [
3838
timestamp: new Date(Date.now() - 5000),
3939
duration: 4000,
4040
adminOnly: false,
41+
variant: "start-cap",
4142
},
4243
{
4344
name: "Launched",
4445
offset: 0,
4546
timestamp: new Date(Date.now() - 1000),
4647
duration: 1000,
4748
adminOnly: false,
49+
variant: "dot-hollow",
4850
},
4951
{
5052
name: "Imported task file",
5153
offset: 0,
5254
timestamp: new Date(Date.now() - 1000),
5355
duration: 1000,
5456
adminOnly: true,
57+
variant: "dot-hollow",
5558
},
5659
],
5760
},
@@ -68,13 +71,15 @@ const spanTimelines = [
6871
timestamp: new Date(Date.now() - 5000),
6972
duration: 4000,
7073
adminOnly: false,
74+
variant: "start-cap",
7175
},
7276
{
7377
name: "Forked",
7478
offset: 0,
7579
timestamp: new Date(Date.now() - 1000),
7680
duration: 1000,
7781
adminOnly: true,
82+
variant: "dot-hollow",
7883
},
7984
],
8085
},
@@ -91,13 +96,15 @@ const spanTimelines = [
9196
timestamp: new Date(Date.now() - 25 * 60 * 60 * 1000),
9297
duration: 4000,
9398
adminOnly: false,
99+
variant: "start-cap",
94100
},
95101
{
96102
name: "Forked",
97103
offset: 0,
98104
timestamp: new Date(Date.now() - 1000),
99105
duration: 1000,
100106
adminOnly: true,
107+
variant: "dot-hollow",
101108
},
102109
],
103110
},
@@ -139,7 +146,7 @@ const runTimelines = [
139146

140147
export default function Story() {
141148
return (
142-
<div className="flex flex-col items-start gap-y-4 p-4">
149+
<div className="flex flex-col items-start gap-y-8 p-4">
143150
<Header2>Span Timeline</Header2>
144151
{spanTimelines.map((props, index) => (
145152
<SpanTimeline key={index} {...props} />

0 commit comments

Comments
 (0)