Phecda

style: fix styles

... ... @@ -219,7 +219,7 @@ const CameraScreen = () => {
</BGScroll>
<CameraModal
visible={cameraVisible}
onTakenPicture={(picture) => {
onTakenPicture={picture => {
setTempPicture(picture);
closeCamera();
}}
... ... @@ -228,7 +228,7 @@ const CameraScreen = () => {
<Scanner
visible={scannerVisible}
onCancel={closeScanner}
onScanCode={(e) => {
onScanCode={e => {
setCodeData(e.data);
setCodeType(e.type);
closeScanner();
... ...
... ... @@ -22,7 +22,7 @@ const DesignList = () => {
return (
<BGScroll>
<Card round>
{Object.keys(labelColor).map((name) => {
{Object.keys(labelColor).map(name => {
return (
<ListItem
title={name}
... ... @@ -35,7 +35,7 @@ const DesignList = () => {
})}
</Card>
<Card round>
{Object.keys(rainbow).map((name) => {
{Object.keys(rainbow).map(name => {
const color = rainbow[name as keyof typeof rainbow];
return (
<ListItem
... ...
... ... @@ -5,7 +5,7 @@ import { ListItem, Divider, BGList } from '../component/View';
type DeviceInfoMethod = keyof typeof DeviceInfo;
const keys = Object.keys(DeviceInfo).filter(
(k) => !k.startsWith('use') && !/Sync/.test(k)
k => !k.startsWith('use') && !/Sync/.test(k)
) as Array<DeviceInfoMethod>;
const DeviceInfoItem = ({ k }: { k: DeviceInfoMethod }) => {
... ...
... ... @@ -18,7 +18,7 @@ const ReadableCode = () => {
<Card round>
<Input
defaultValue={qrValue}
onSubmitEditing={(e) => setQRValue(e.nativeEvent.text)}
onSubmitEditing={e => setQRValue(e.nativeEvent.text)}
placeholder="QR Code"
/>
{!!qrValue && (
... ... @@ -30,7 +30,7 @@ const ReadableCode = () => {
<Card round>
<Input
defaultValue={barValue}
onSubmitEditing={(e) => setBarValue(e.nativeEvent.text)}
onSubmitEditing={e => setBarValue(e.nativeEvent.text)}
placeholder="Bar Code"
keyboardType="number-pad"
/>
... ...
... ... @@ -39,14 +39,14 @@ const Body = React.forwardRef<
);
const shouldRequest: OnShouldStartLoadWithRequest = useCallback(
(request) => {
request => {
const { url } = request;
if (url.startsWith('http') || url === 'about:blank') {
return true;
} else {
dispatch(webActions.changeNavigationState(request));
Linking.canOpenURL(url)
.then((canOpen) => {
.then(canOpen => {
if (canOpen) {
return Linking.openURL(url);
}
... ...
... ... @@ -153,7 +153,7 @@ function WebviewHeader({ state, dispatch, webview }: Props) {
autoCapitalize="none"
autoCorrect={false}
autoFocus
onBlur={(e) => {
onBlur={e => {
toggleFocused();
}}
clearButtonMode="while-editing"
... ...