Skip to content

Commit d808d14

Browse files
committed
[ContributionChart] add 2 new stories
1 parent c476bb8 commit d808d14

File tree

4 files changed

+29942
-11
lines changed

4 files changed

+29942
-11
lines changed

components/ContributionChart.stories.js

+18-1
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,23 @@ const data = [
343343
{ date: '2021-02-23', count: 2 },
344344
];
345345

346-
export const Normal = () => (
346+
export const Many = () => (
347347
<ContributionChart startDate="2020-02-22" endDate="2021-02-23" data={data} />
348348
);
349+
350+
export const Few = () => (
351+
<ContributionChart
352+
startDate="2020-02-22"
353+
endDate="2021-02-23"
354+
data={[
355+
{ date: '2020-11-25', count: 1 },
356+
{ date: '2020-11-26', count: 4 },
357+
{ date: '2020-11-27', count: 6 },
358+
{ date: '2021-02-19', count: 8 },
359+
]}
360+
/>
361+
);
362+
363+
export const Empty = () => (
364+
<ContributionChart startDate="2020-02-22" endDate="2021-02-23" data={[]} />
365+
);

components/Infos/__snapshots__/Infos.stories.storyshot

+5-5
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ exports[`Storyshots Infos With Reply Count Info 1`] = `
9393
arrow={true}
9494
title={
9595
<div
96-
className="makeStyles-opinions-438"
96+
className="makeStyles-opinions-582"
9797
>
9898
<span
99-
className="makeStyles-opinion-439"
99+
className="makeStyles-opinion-583"
100100
>
101101
<NOT_ARTICLE
102102
fontSize="inherit"
@@ -106,7 +106,7 @@ exports[`Storyshots Infos With Reply Count Info 1`] = `
106106
</span>
107107
</span>
108108
<span
109-
className="makeStyles-opinion-439"
109+
className="makeStyles-opinion-583"
110110
>
111111
<OPINIONATED
112112
fontSize="inherit"
@@ -116,7 +116,7 @@ exports[`Storyshots Infos With Reply Count Info 1`] = `
116116
</span>
117117
</span>
118118
<span
119-
className="makeStyles-opinion-439"
119+
className="makeStyles-opinion-583"
120120
>
121121
<NOT_RUMOR
122122
fontSize="inherit"
@@ -126,7 +126,7 @@ exports[`Storyshots Infos With Reply Count Info 1`] = `
126126
</span>
127127
</span>
128128
<span
129-
className="makeStyles-opinion-439"
129+
className="makeStyles-opinion-583"
130130
>
131131
<RUMOR
132132
fontSize="inherit"

components/ReportPage/__snapshots__/ActionButton.stories.storyshot

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exports[`Storyshots ReportPage/ActionButton Default 1`] = `
99
}
1010
>
1111
<button
12-
className="MuiButtonBase-root-1173 MuiButton-root-1144 MuiButton-outlined-1149 makeStyles-button"
12+
className="MuiButtonBase-root-1317 MuiButton-root-1288 MuiButton-outlined-1293 makeStyles-button"
1313
disabled={false}
1414
onBlur={[Function]}
1515
onDragLeave={[Function]}
@@ -31,13 +31,13 @@ exports[`Storyshots ReportPage/ActionButton Default 1`] = `
3131
type="button"
3232
>
3333
<span
34-
className="MuiButton-label-1145"
34+
className="MuiButton-label-1289"
3535
>
3636
Action button text
3737
<Arrow>
3838
<svg
3939
aria-hidden="true"
40-
className="MuiSvgIcon-root-1176"
40+
className="MuiSvgIcon-root-1320"
4141
focusable="false"
4242
viewBox="0 0 14 27"
4343
>
@@ -52,7 +52,7 @@ exports[`Storyshots ReportPage/ActionButton Default 1`] = `
5252
</span>
5353
<NoSsr>
5454
<span
55-
className="MuiTouchRipple-root-1185"
55+
className="MuiTouchRipple-root-1329"
5656
>
5757
<TransitionGroup
5858
childFactory={[Function]}

0 commit comments

Comments
 (0)