summaryrefslogtreecommitdiff
path: root/app/components/graph-ui/graph-ui.tsx
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/graph-ui/graph-ui.tsx
parent67ad38d0a7cd319623e9f41c0c381ed5c5f6f973 (diff)
Apply Prettier
Diffstat (limited to 'app/components/graph-ui/graph-ui.tsx')
-rw-r--r--app/components/graph-ui/graph-ui.tsx32
1 files changed, 20 insertions, 12 deletions
diff --git a/app/components/graph-ui/graph-ui.tsx b/app/components/graph-ui/graph-ui.tsx
index 9ea792a..36a675a 100644
--- a/app/components/graph-ui/graph-ui.tsx
+++ b/app/components/graph-ui/graph-ui.tsx
@@ -1,12 +1,12 @@
-import * as React from "react"
-import { StyleProp, TextStyle, View, ViewStyle } from "react-native"
-import { observer } from "mobx-react-lite"
-import { color, typography } from "../../theme"
-import { LocalButton, Text, Tweaks } from "../"
-import { flatten } from "ramda"
+import * as React from 'react'
+import { StyleProp, TextStyle, View, ViewStyle } from 'react-native'
+import { observer } from 'mobx-react-lite'
+import { color, typography } from '../../theme'
+import { LocalButton, Text, Tweaks } from '../'
+import { flatten } from 'ramda'
const CONTAINER: ViewStyle = {
- justifyContent: "center",
+ justifyContent: 'center',
}
const TEXT: TextStyle = {
@@ -20,8 +20,8 @@ export interface GraphUiProps {
* An optional style override useful for padding & margin.
*/
style?: StyleProp<ViewStyle>
- physics
- setPhysics
+ physics
+ setPhysics
}
/**
@@ -32,9 +32,17 @@ export const GraphUi = observer(function GraphUi(props: GraphUiProps) {
const styles = flatten([CONTAINER, style])
return (
- <View style={{height: "100%", width: "100%", borderStyle: "solid", borderWidth: 5,position:"relative"}}>
- <Tweaks physics={physics} setPhysics={setPhysics} />
- <LocalButton physics={physics} setPhysics={setPhysics}/>
+ <View
+ style={{
+ height: '100%',
+ width: '100%',
+ borderStyle: 'solid',
+ borderWidth: 5,
+ position: 'relative',
+ }}
+ >
+ <Tweaks physics={physics} setPhysics={setPhysics} />
+ <LocalButton physics={physics} setPhysics={setPhysics} />
</View>
)
})