From fa0bbb097a7653968f3bca638f255b96f6e76c55 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Sat, 24 Jul 2021 13:16:09 +0500 Subject: [PATCH] clean up --- .../ActionSheetWrapper.js | 27 ++++++++++--------- .../src/components/LoginDialog/index.js | 2 +- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js b/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js index 0438edaab..170c99960 100644 --- a/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js +++ b/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js @@ -1,17 +1,17 @@ import React from 'react'; -import {Platform, View} from 'react-native'; +import { Platform, View } from 'react-native'; import ActionSheet from 'react-native-actions-sheet'; -import {useSafeAreaInsets} from 'react-native-safe-area-context'; -import {useTracked} from '../../provider'; -import {useSettingStore} from '../../provider/stores'; -import {editing} from '../../utils'; -import {hexToRGBA} from '../../utils/ColorUtils'; -import {sleep} from '../../utils/TimeUtils'; -import {EditorWebView, textInput} from '../../views/Editor/Functions'; +import { useSafeAreaInsets } from 'react-native-safe-area-context'; +import { useTracked } from '../../provider'; +import { useSettingStore } from '../../provider/stores'; +import { editing } from '../../utils'; +import { hexToRGBA } from '../../utils/ColorUtils'; +import { sleep } from '../../utils/TimeUtils'; +import { EditorWebView, textInput } from '../../views/Editor/Functions'; import tiny from '../../views/Editor/tiny/tiny'; -import {focusEditor} from '../../views/Editor/tiny/toolbar/constants'; -import {Toast} from '../Toast'; -import {GetPremium} from './GetPremium'; +import { focusEditor } from '../../views/Editor/tiny/toolbar/constants'; +import { Toast } from '../Toast'; +import { GetPremium } from './GetPremium'; const ActionSheetWrapper = ({ children, @@ -21,7 +21,7 @@ const ActionSheetWrapper = ({ onOpen, closeOnTouchBackdrop = true, onHasReachedTop, - keyboardMode, + keyboardMode }) => { const [state] = useTracked(); const {colors} = state; @@ -29,7 +29,6 @@ const ActionSheetWrapper = ({ const largeTablet = deviceMode === 'tablet'; const smallTablet = deviceMode === 'smallTablet'; const dimensions = useSettingStore(state => state.dimensions); - const insets = useSafeAreaInsets(); let width = dimensions.width > 600 ? 600 : 500; @@ -44,6 +43,8 @@ const ActionSheetWrapper = ({ borderTopRightRadius: 10, borderTopLeftRadius: 10, alignSelf: 'center', + borderBottomRight: 0, + borderBottomLeft: 0 }; }, [colors.bg, gestureEnabled]); diff --git a/apps/mobile/src/components/LoginDialog/index.js b/apps/mobile/src/components/LoginDialog/index.js index bcc0a491f..fd7b4e8b1 100644 --- a/apps/mobile/src/components/LoginDialog/index.js +++ b/apps/mobile/src/components/LoginDialog/index.js @@ -747,7 +747,7 @@ const LoginDialog = () => { style={{ flexShrink: 1 }}> - {status}Logging in + {status} {current.loading}{' '} {!current.showLoader ? null : (