Skip to content

Commit

Permalink
Remove flaky portion of DatePicker stories
Browse files Browse the repository at this point in the history
  • Loading branch information
stephl3 committed May 22, 2024
1 parent e31fb71 commit 971d32a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/date-picker/src/DatePicker.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
/* eslint-disable react/prop-types */
import React, { useState } from 'react';
import { StoryMetaType } from '@lg-tools/storybook-utils';
import { StoryFn } from '@storybook/react';
import isNull from 'lodash/isNull';
import isUndefined from 'lodash/isUndefined';

import Button from '@leafygreen-ui/button';
import {
DateType,
isValidDate,
Month,
newUTC,
testLocales,
Expand All @@ -18,7 +14,6 @@ import { css } from '@leafygreen-ui/emotion';
import LeafyGreenProvider from '@leafygreen-ui/leafygreen-provider';
import Modal from '@leafygreen-ui/modal';
import { Size } from '@leafygreen-ui/tokens';
import { Overline } from '@leafygreen-ui/typography';

import { MAX_DATE, MIN_DATE } from './shared/constants';
import {
Expand Down Expand Up @@ -130,15 +125,6 @@ export const LiveExample: StoryFn<typeof DatePicker> = props => {
console.log('Storybook: onChange🚨', { value: e.target.value })
}
/>
<br />
<Overline>Current value</Overline>
<code>
{isValidDate(value)
? value.toISOString()
: isNull(value) || isUndefined(value)
? String(value)
: value.toDateString()}
</code>
</div>
);
};
Expand Down

0 comments on commit 971d32a

Please sign in to comment.