Phecda

style: fix styles

@@ -219,7 +219,7 @@ const CameraScreen = () => { @@ -219,7 +219,7 @@ const CameraScreen = () => {
219 </BGScroll> 219 </BGScroll>
220 <CameraModal 220 <CameraModal
221 visible={cameraVisible} 221 visible={cameraVisible}
222 - onTakenPicture={(picture) => { 222 + onTakenPicture={picture => {
223 setTempPicture(picture); 223 setTempPicture(picture);
224 closeCamera(); 224 closeCamera();
225 }} 225 }}
@@ -228,7 +228,7 @@ const CameraScreen = () => { @@ -228,7 +228,7 @@ const CameraScreen = () => {
228 <Scanner 228 <Scanner
229 visible={scannerVisible} 229 visible={scannerVisible}
230 onCancel={closeScanner} 230 onCancel={closeScanner}
231 - onScanCode={(e) => { 231 + onScanCode={e => {
232 setCodeData(e.data); 232 setCodeData(e.data);
233 setCodeType(e.type); 233 setCodeType(e.type);
234 closeScanner(); 234 closeScanner();
@@ -22,7 +22,7 @@ const DesignList = () => { @@ -22,7 +22,7 @@ const DesignList = () => {
22 return ( 22 return (
23 <BGScroll> 23 <BGScroll>
24 <Card round> 24 <Card round>
25 - {Object.keys(labelColor).map((name) => { 25 + {Object.keys(labelColor).map(name => {
26 return ( 26 return (
27 <ListItem 27 <ListItem
28 title={name} 28 title={name}
@@ -35,7 +35,7 @@ const DesignList = () => { @@ -35,7 +35,7 @@ const DesignList = () => {
35 })} 35 })}
36 </Card> 36 </Card>
37 <Card round> 37 <Card round>
38 - {Object.keys(rainbow).map((name) => { 38 + {Object.keys(rainbow).map(name => {
39 const color = rainbow[name as keyof typeof rainbow]; 39 const color = rainbow[name as keyof typeof rainbow];
40 return ( 40 return (
41 <ListItem 41 <ListItem
@@ -5,7 +5,7 @@ import { ListItem, Divider, BGList } from '../component/View'; @@ -5,7 +5,7 @@ import { ListItem, Divider, BGList } from '../component/View';
5 type DeviceInfoMethod = keyof typeof DeviceInfo; 5 type DeviceInfoMethod = keyof typeof DeviceInfo;
6 6
7 const keys = Object.keys(DeviceInfo).filter( 7 const keys = Object.keys(DeviceInfo).filter(
8 - (k) => !k.startsWith('use') && !/Sync/.test(k) 8 + k => !k.startsWith('use') && !/Sync/.test(k)
9 ) as Array<DeviceInfoMethod>; 9 ) as Array<DeviceInfoMethod>;
10 10
11 const DeviceInfoItem = ({ k }: { k: DeviceInfoMethod }) => { 11 const DeviceInfoItem = ({ k }: { k: DeviceInfoMethod }) => {
@@ -18,7 +18,7 @@ const ReadableCode = () => { @@ -18,7 +18,7 @@ const ReadableCode = () => {
18 <Card round> 18 <Card round>
19 <Input 19 <Input
20 defaultValue={qrValue} 20 defaultValue={qrValue}
21 - onSubmitEditing={(e) => setQRValue(e.nativeEvent.text)} 21 + onSubmitEditing={e => setQRValue(e.nativeEvent.text)}
22 placeholder="QR Code" 22 placeholder="QR Code"
23 /> 23 />
24 {!!qrValue && ( 24 {!!qrValue && (
@@ -30,7 +30,7 @@ const ReadableCode = () => { @@ -30,7 +30,7 @@ const ReadableCode = () => {
30 <Card round> 30 <Card round>
31 <Input 31 <Input
32 defaultValue={barValue} 32 defaultValue={barValue}
33 - onSubmitEditing={(e) => setBarValue(e.nativeEvent.text)} 33 + onSubmitEditing={e => setBarValue(e.nativeEvent.text)}
34 placeholder="Bar Code" 34 placeholder="Bar Code"
35 keyboardType="number-pad" 35 keyboardType="number-pad"
36 /> 36 />
@@ -39,14 +39,14 @@ const Body = React.forwardRef< @@ -39,14 +39,14 @@ const Body = React.forwardRef<
39 ); 39 );
40 40
41 const shouldRequest: OnShouldStartLoadWithRequest = useCallback( 41 const shouldRequest: OnShouldStartLoadWithRequest = useCallback(
42 - (request) => { 42 + request => {
43 const { url } = request; 43 const { url } = request;
44 if (url.startsWith('http') || url === 'about:blank') { 44 if (url.startsWith('http') || url === 'about:blank') {
45 return true; 45 return true;
46 } else { 46 } else {
47 dispatch(webActions.changeNavigationState(request)); 47 dispatch(webActions.changeNavigationState(request));
48 Linking.canOpenURL(url) 48 Linking.canOpenURL(url)
49 - .then((canOpen) => { 49 + .then(canOpen => {
50 if (canOpen) { 50 if (canOpen) {
51 return Linking.openURL(url); 51 return Linking.openURL(url);
52 } 52 }
@@ -153,7 +153,7 @@ function WebviewHeader({ state, dispatch, webview }: Props) { @@ -153,7 +153,7 @@ function WebviewHeader({ state, dispatch, webview }: Props) {
153 autoCapitalize="none" 153 autoCapitalize="none"
154 autoCorrect={false} 154 autoCorrect={false}
155 autoFocus 155 autoFocus
156 - onBlur={(e) => { 156 + onBlur={e => {
157 toggleFocused(); 157 toggleFocused();
158 }} 158 }}
159 clearButtonMode="while-editing" 159 clearButtonMode="while-editing"