Skip to content

Commit a764e06

Browse files
committed
Remove random-ness so chromatic does not flag it all the time
1 parent 05230b9 commit a764e06

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/stories/DataDisplay/DatePicker.stories.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import dayjs from "dayjs";
2-
import { random } from "lodash";
32
import React, { useState } from "react";
43
import { Button, DatePicker, DatePickerPopover, Switch, theme } from "../..";
54
import { formatDate } from "../../helpers/date";
@@ -175,10 +174,10 @@ for (let day = 1; day <= dayjs().daysInMonth(); day++) {
175174
customContent.push(`$${day * 3.5}`);
176175
}
177176

178-
customContent[random(1, dayjs().daysInMonth())] = "Please Call/Email";
179-
customContent[random(1, dayjs().daysInMonth())] = "Sold Out";
180-
customContent[random(1, dayjs().daysInMonth())] = "Sold Out";
181-
customContent[random(1, dayjs().daysInMonth())] = "205 spots";
177+
customContent[10] = "Please Call/Email";
178+
customContent[15] = "Sold Out";
179+
customContent[23] = "205 spots";
180+
customContent[22] = "Sold Out";
182181

183182
export const WithCustomContent = () => {
184183
const [value, setValue] = useState(new Date());

0 commit comments

Comments
 (0)