mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
use reflow to migrate from flow to typescript
This commit is contained in:
25
scm-ui/ui-components/src/DateFromNow.stories.tsx
Normal file
25
scm-ui/ui-components/src/DateFromNow.stories.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import React from 'react';
|
||||
import DateFromNow from './DateFromNow';
|
||||
import { storiesOf } from '@storybook/react';
|
||||
|
||||
const baseProps = {
|
||||
timeZone: 'Europe/Berlin',
|
||||
baseDate: '2019-10-12T13:56:42+02:00',
|
||||
};
|
||||
|
||||
storiesOf('DateFromNow', module).add('Default', () => (
|
||||
<div>
|
||||
<p>
|
||||
<DateFromNow date="2009-06-30T18:30:00+02:00" {...baseProps} />
|
||||
</p>
|
||||
<p>
|
||||
<DateFromNow date="2019-06-30T18:30:00+02:00" {...baseProps} />
|
||||
</p>
|
||||
<p>
|
||||
<DateFromNow date="2019-10-12T13:56:40+02:00" {...baseProps} />
|
||||
</p>
|
||||
<p>
|
||||
<DateFromNow date="2019-10-11T13:56:40+02:00" {...baseProps} />
|
||||
</p>
|
||||
</div>
|
||||
));
|
||||
Reference in New Issue
Block a user