diff options
Diffstat (limited to 'app/components/header/header.story.tsx')
-rw-r--r-- | app/components/header/header.story.tsx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/app/components/header/header.story.tsx b/app/components/header/header.story.tsx index 05093b3..db87b89 100644 --- a/app/components/header/header.story.tsx +++ b/app/components/header/header.story.tsx @@ -1,9 +1,9 @@ -import * as React from "react" -import { View, Alert } from "react-native" -import { storiesOf } from "@storybook/react-native" -import { StoryScreen, Story, UseCase } from "../../../storybook/views" -import { Header } from "./header" -import { color } from "../../theme" +import * as React from 'react' +import { View, Alert } from 'react-native' +import { storiesOf } from '@storybook/react-native' +import { StoryScreen, Story, UseCase } from '../../../storybook/views' +import { Header } from './header' +import { color } from '../../theme' declare let module @@ -12,9 +12,9 @@ const VIEWSTYLE = { backgroundColor: color.storybookDarkBg, } -storiesOf("Header", module) +storiesOf('Header', module) .addDecorator((fn) => <StoryScreen>{fn()}</StoryScreen>) - .add("Behavior", () => ( + .add('Behavior', () => ( <Story> <UseCase noPad text="default" usage="The default usage"> <View style={VIEWSTYLE}> @@ -26,7 +26,7 @@ storiesOf("Header", module) <Header headerTx="demoScreen.howTo" leftIcon="back" - onLeftPress={() => Alert.alert("left nav")} + onLeftPress={() => Alert.alert('left nav')} /> </View> </UseCase> @@ -35,7 +35,7 @@ storiesOf("Header", module) <Header headerTx="demoScreen.howTo" rightIcon="bullet" - onRightPress={() => Alert.alert("right nav")} + onRightPress={() => Alert.alert('right nav')} /> </View> </UseCase> |