summaryrefslogtreecommitdiff
path: root/app/components/icon
diff options
context:
space:
mode:
authorKirill Rogovoy <[email protected]>2021-07-19 20:06:08 +0300
committerKirill Rogovoy <[email protected]>2021-07-19 20:06:08 +0300
commitf0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 (patch)
tree575c0ff2cbb846252bd2e494c81c396846aab2f6 /app/components/icon
parent67ad38d0a7cd319623e9f41c0c381ed5c5f6f973 (diff)
Apply Prettier
Diffstat (limited to 'app/components/icon')
-rw-r--r--app/components/icon/icon.props.ts4
-rw-r--r--app/components/icon/icon.story.tsx12
-rw-r--r--app/components/icon/icon.tsx12
-rw-r--r--app/components/icon/icons/index.ts4
4 files changed, 16 insertions, 16 deletions
diff --git a/app/components/icon/icon.props.ts b/app/components/icon/icon.props.ts
index 71ce0b7..1f3ed2e 100644
--- a/app/components/icon/icon.props.ts
+++ b/app/components/icon/icon.props.ts
@@ -1,5 +1,5 @@
-import { ImageStyle, StyleProp, ViewStyle } from "react-native"
-import { IconTypes } from "./icons"
+import { ImageStyle, StyleProp, ViewStyle } from 'react-native'
+import { IconTypes } from './icons'
export interface IconProps {
/**
diff --git a/app/components/icon/icon.story.tsx b/app/components/icon/icon.story.tsx
index d119ed4..31c8499 100644
--- a/app/components/icon/icon.story.tsx
+++ b/app/components/icon/icon.story.tsx
@@ -1,13 +1,13 @@
-import * as React from "react"
-import { storiesOf } from "@storybook/react-native"
-import { StoryScreen, Story, UseCase } from "../../../storybook/views"
-import { Icon } from "./icon"
+import * as React from 'react'
+import { storiesOf } from '@storybook/react-native'
+import { StoryScreen, Story, UseCase } from '../../../storybook/views'
+import { Icon } from './icon'
declare let module
-storiesOf("Icon", module)
+storiesOf('Icon', module)
.addDecorator((fn) => <StoryScreen>{fn()}</StoryScreen>)
- .add("Names", () => (
+ .add('Names', () => (
<Story>
<UseCase text="back" usage="The icon for going back">
<Icon icon="back" />
diff --git a/app/components/icon/icon.tsx b/app/components/icon/icon.tsx
index 4735e13..f596bb2 100644
--- a/app/components/icon/icon.tsx
+++ b/app/components/icon/icon.tsx
@@ -1,11 +1,11 @@
-import * as React from "react"
-import { View, ImageStyle } from "react-native"
-import { AutoImage as Image } from "../auto-image/auto-image"
-import { IconProps } from "./icon.props"
-import { icons } from "./icons"
+import * as React from 'react'
+import { View, ImageStyle } from 'react-native'
+import { AutoImage as Image } from '../auto-image/auto-image'
+import { IconProps } from './icon.props'
+import { icons } from './icons'
const ROOT: ImageStyle = {
- resizeMode: "contain",
+ resizeMode: 'contain',
}
export function Icon(props: IconProps) {
diff --git a/app/components/icon/icons/index.ts b/app/components/icon/icons/index.ts
index 00e8a59..792e408 100644
--- a/app/components/icon/icons/index.ts
+++ b/app/components/icon/icons/index.ts
@@ -1,6 +1,6 @@
export const icons = {
- back: require("./arrow-left.png"),
- bullet: require("./bullet.png"),
+ back: require('./arrow-left.png'),
+ bullet: require('./bullet.png'),
}
export type IconTypes = keyof typeof icons