From f0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 Mon Sep 17 00:00:00 2001
From: Kirill Rogovoy <kirill@rogovoy.me>
Date: Mon, 19 Jul 2021 20:06:08 +0300
Subject: Apply Prettier

---
 app/components/switch/switch.story.tsx | 53 ++++++++++++++++++++--------------
 1 file changed, 31 insertions(+), 22 deletions(-)

(limited to 'app/components/switch/switch.story.tsx')

diff --git a/app/components/switch/switch.story.tsx b/app/components/switch/switch.story.tsx
index 998d1df..bbd29ee 100644
--- a/app/components/switch/switch.story.tsx
+++ b/app/components/switch/switch.story.tsx
@@ -1,19 +1,19 @@
 /* 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 { Toggle } from "react-powerplug"
-import { Switch } from "./switch"
+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 { Toggle } from 'react-powerplug'
+import { Switch } from './switch'
 
 declare let module
 
-const styleArray: ViewStyle[] = [{ borderColor: "#686868" }]
+const styleArray: ViewStyle[] = [{ borderColor: '#686868' }]
 
 const trackOffStyle: ViewStyle[] = [
-  { backgroundColor: "#686868" },
+  { backgroundColor: '#686868' },
   {
     height: 80,
     borderRadius: 0,
@@ -21,8 +21,8 @@ const trackOffStyle: ViewStyle[] = [
 ]
 const trackOnStyle: ViewStyle[] = [
   {
-    backgroundColor: "#b1008e",
-    borderColor: "#686868",
+    backgroundColor: '#b1008e',
+    borderColor: '#686868',
   },
   {
     height: 80,
@@ -31,8 +31,8 @@ const trackOnStyle: ViewStyle[] = [
 ]
 const thumbOffStyle: ViewStyle[] = [
   {
-    backgroundColor: "#b1008e",
-    borderColor: "#686868",
+    backgroundColor: '#b1008e',
+    borderColor: '#686868',
   },
   {
     height: 80,
@@ -40,19 +40,22 @@ const thumbOffStyle: ViewStyle[] = [
   },
 ]
 const thumbOnStyle: ViewStyle[] = [
-  { backgroundColor: "#f0c" },
+  { backgroundColor: '#f0c' },
   {
     height: 80,
     borderRadius: 0,
-    borderColor: "#686868",
+    borderColor: '#686868',
   },
 ]
 
-storiesOf("Switch", module)
+storiesOf('Switch', module)
   .addDecorator((fn) => <StoryScreen>{fn()}</StoryScreen>)
-  .add("Behaviour", () => (
+  .add('Behaviour', () => (
     <Story>
-      <UseCase text="The Toggle Switch" usage="Use the switch to represent on/off states.">
+      <UseCase
+        text="The Toggle Switch"
+        usage="Use the switch to represent on/off states."
+      >
         <Toggle initial={false}>
           {({ on, toggle }) => <Switch value={on} onToggle={toggle} />}
         </Toggle>
@@ -65,17 +68,23 @@ storiesOf("Switch", module)
       </UseCase>
     </Story>
   ))
-  .add("Styling", () => (
+  .add('Styling', () => (
     <Story>
       <UseCase text="Custom Styling" usage="Promise me this won't happen.">
         <Toggle initial={false}>
           {({ on, toggle }) => (
             <View>
               <Switch
-                trackOnStyle={{ backgroundColor: "green", borderColor: "black" }}
-                trackOffStyle={{ backgroundColor: "red", borderColor: "maroon" }}
-                thumbOnStyle={{ backgroundColor: "cyan" }}
-                thumbOffStyle={{ backgroundColor: "pink" }}
+                trackOnStyle={{
+                  backgroundColor: 'green',
+                  borderColor: 'black',
+                }}
+                trackOffStyle={{
+                  backgroundColor: 'red',
+                  borderColor: 'maroon',
+                }}
+                thumbOnStyle={{ backgroundColor: 'cyan' }}
+                thumbOffStyle={{ backgroundColor: 'pink' }}
                 value={on}
                 onToggle={toggle}
               />
-- 
cgit v1.2.3

