mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
migrate ui-components from flow to typescript
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import React from 'react';
|
||||
import DateFromNow from './DateFromNow';
|
||||
import { storiesOf } from '@storybook/react';
|
||||
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',
|
||||
timeZone: "Europe/Berlin",
|
||||
baseDate: "2019-10-12T13:56:42+02:00"
|
||||
};
|
||||
|
||||
storiesOf('DateFromNow', module).add('Default', () => (
|
||||
storiesOf("DateFromNow", module).add("Default", () => (
|
||||
<div>
|
||||
<p>
|
||||
<DateFromNow date="2009-06-30T18:30:00+02:00" {...baseProps} />
|
||||
|
||||
Reference in New Issue
Block a user