-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel
committed
Jan 31, 2022
1 parent
06d36c6
commit f11811e
Showing
6 changed files
with
116 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
examples/native/components/ControlExamples/Date/Date.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import React from 'react'; | ||
import { ComponentStory, ComponentMeta } from '@storybook/react-native'; | ||
import { LocalisedDate } from './Date'; | ||
import { DateString } from './Date'; | ||
|
||
const date = new Date(1983, 1, 25); | ||
|
||
const DateMeta: ComponentMeta<typeof LocalisedDate> = { | ||
const DateMeta: ComponentMeta<typeof DateString> = { | ||
title: 'Date', | ||
component: LocalisedDate, | ||
component: DateString, | ||
args: { date: date }, | ||
argTypes: { date: { control: { type: 'date' } } }, | ||
}; | ||
|
||
export default DateMeta; | ||
|
||
type DateStory = ComponentStory<typeof LocalisedDate>; | ||
type DateStory = ComponentStory<typeof DateString>; | ||
|
||
export const Basic: DateStory = (args) => <LocalisedDate {...args} />; | ||
export const Basic: DateStory = (args) => <DateString {...args} />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters