mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
clean up
This commit is contained in:
@@ -1,17 +1,17 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {Platform, View} from 'react-native';
|
import { Platform, View } from 'react-native';
|
||||||
import ActionSheet from 'react-native-actions-sheet';
|
import ActionSheet from 'react-native-actions-sheet';
|
||||||
import {useSafeAreaInsets} from 'react-native-safe-area-context';
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
||||||
import {useTracked} from '../../provider';
|
import { useTracked } from '../../provider';
|
||||||
import {useSettingStore} from '../../provider/stores';
|
import { useSettingStore } from '../../provider/stores';
|
||||||
import {editing} from '../../utils';
|
import { editing } from '../../utils';
|
||||||
import {hexToRGBA} from '../../utils/ColorUtils';
|
import { hexToRGBA } from '../../utils/ColorUtils';
|
||||||
import {sleep} from '../../utils/TimeUtils';
|
import { sleep } from '../../utils/TimeUtils';
|
||||||
import {EditorWebView, textInput} from '../../views/Editor/Functions';
|
import { EditorWebView, textInput } from '../../views/Editor/Functions';
|
||||||
import tiny from '../../views/Editor/tiny/tiny';
|
import tiny from '../../views/Editor/tiny/tiny';
|
||||||
import {focusEditor} from '../../views/Editor/tiny/toolbar/constants';
|
import { focusEditor } from '../../views/Editor/tiny/toolbar/constants';
|
||||||
import {Toast} from '../Toast';
|
import { Toast } from '../Toast';
|
||||||
import {GetPremium} from './GetPremium';
|
import { GetPremium } from './GetPremium';
|
||||||
|
|
||||||
const ActionSheetWrapper = ({
|
const ActionSheetWrapper = ({
|
||||||
children,
|
children,
|
||||||
@@ -21,7 +21,7 @@ const ActionSheetWrapper = ({
|
|||||||
onOpen,
|
onOpen,
|
||||||
closeOnTouchBackdrop = true,
|
closeOnTouchBackdrop = true,
|
||||||
onHasReachedTop,
|
onHasReachedTop,
|
||||||
keyboardMode,
|
keyboardMode
|
||||||
}) => {
|
}) => {
|
||||||
const [state] = useTracked();
|
const [state] = useTracked();
|
||||||
const {colors} = state;
|
const {colors} = state;
|
||||||
@@ -29,7 +29,6 @@ const ActionSheetWrapper = ({
|
|||||||
const largeTablet = deviceMode === 'tablet';
|
const largeTablet = deviceMode === 'tablet';
|
||||||
const smallTablet = deviceMode === 'smallTablet';
|
const smallTablet = deviceMode === 'smallTablet';
|
||||||
const dimensions = useSettingStore(state => state.dimensions);
|
const dimensions = useSettingStore(state => state.dimensions);
|
||||||
|
|
||||||
const insets = useSafeAreaInsets();
|
const insets = useSafeAreaInsets();
|
||||||
|
|
||||||
let width = dimensions.width > 600 ? 600 : 500;
|
let width = dimensions.width > 600 ? 600 : 500;
|
||||||
@@ -44,6 +43,8 @@ const ActionSheetWrapper = ({
|
|||||||
borderTopRightRadius: 10,
|
borderTopRightRadius: 10,
|
||||||
borderTopLeftRadius: 10,
|
borderTopLeftRadius: 10,
|
||||||
alignSelf: 'center',
|
alignSelf: 'center',
|
||||||
|
borderBottomRight: 0,
|
||||||
|
borderBottomLeft: 0
|
||||||
};
|
};
|
||||||
}, [colors.bg, gestureEnabled]);
|
}, [colors.bg, gestureEnabled]);
|
||||||
|
|
||||||
|
|||||||
@@ -747,7 +747,7 @@ const LoginDialog = () => {
|
|||||||
style={{
|
style={{
|
||||||
flexShrink: 1
|
flexShrink: 1
|
||||||
}}>
|
}}>
|
||||||
<Heading size={SIZE.md}>{status}Logging in</Heading>
|
<Heading size={SIZE.md}>{status}</Heading>
|
||||||
<Paragraph style={{flexWrap: 'wrap'}} color={colors.icon}>
|
<Paragraph style={{flexWrap: 'wrap'}} color={colors.icon}>
|
||||||
{current.loading}{' '}
|
{current.loading}{' '}
|
||||||
{!current.showLoader ? null : (
|
{!current.showLoader ? null : (
|
||||||
|
|||||||
Reference in New Issue
Block a user