From f0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Mon, 19 Jul 2021 20:06:08 +0300 Subject: Apply Prettier --- app/components/checkbox/checkbox.story.tsx | 45 +++++++++++++++++++----------- 1 file changed, 28 insertions(+), 17 deletions(-) (limited to 'app/components/checkbox/checkbox.story.tsx') diff --git a/app/components/checkbox/checkbox.story.tsx b/app/components/checkbox/checkbox.story.tsx index f8d80d8..9d1429a 100644 --- a/app/components/checkbox/checkbox.story.tsx +++ b/app/components/checkbox/checkbox.story.tsx @@ -1,26 +1,37 @@ /* eslint-disable react-native/no-inline-styles */ /* eslint-disable react-native/no-color-literals */ -import * as React from "react" -import { View, ViewStyle } from "react-native" -import { storiesOf } from "@storybook/react-native" -import { StoryScreen, Story, UseCase } from "../../../storybook/views" -import { Checkbox } from "./checkbox" -import { Toggle } from "react-powerplug" +import * as React from 'react' +import { View, ViewStyle } from 'react-native' +import { storiesOf } from '@storybook/react-native' +import { StoryScreen, Story, UseCase } from '../../../storybook/views' +import { Checkbox } from './checkbox' +import { Toggle } from 'react-powerplug' declare let module -const arrayStyle: ViewStyle[] = [{ paddingVertical: 40 }, { alignSelf: "flex-end" }] -const arrayOutlineStyle: ViewStyle[] = [{ borderColor: "#b443c9" }, { borderWidth: 25 }] -const arrayFillStyle: ViewStyle[] = [{ backgroundColor: "#55e0ff" }] +const arrayStyle: ViewStyle[] = [ + { paddingVertical: 40 }, + { alignSelf: 'flex-end' }, +] +const arrayOutlineStyle: ViewStyle[] = [ + { borderColor: '#b443c9' }, + { borderWidth: 25 }, +] +const arrayFillStyle: ViewStyle[] = [{ backgroundColor: '#55e0ff' }] -storiesOf("Checkbox", module) +storiesOf('Checkbox', module) .addDecorator((fn) => {fn()}) - .add("Behaviour", () => ( + .add('Behaviour', () => ( - + - {({ on, toggle }) => } + {({ on, toggle }) => ( + + )} @@ -31,7 +42,7 @@ storiesOf("Checkbox", module) )) - .add("Styling", () => ( + .add('Styling', () => ( @@ -55,7 +66,7 @@ storiesOf("Checkbox", module) text="Hello there!" value={on} style={{ - backgroundColor: "purple", + backgroundColor: 'purple', marginLeft: 40, paddingVertical: 30, paddingLeft: 60, @@ -74,7 +85,7 @@ storiesOf("Checkbox", module) text="Outline is the box frame" value={on} outlineStyle={{ - borderColor: "green", + borderColor: 'green', borderRadius: 10, borderWidth: 4, width: 60, @@ -93,7 +104,7 @@ storiesOf("Checkbox", module) -- cgit v1.2.3