diff options
Diffstat (limited to 'src/state/shell')
-rw-r--r-- | src/state/shell/color-mode.tsx | 1 | ||||
-rw-r--r-- | src/state/shell/composer.tsx | 3 | ||||
-rw-r--r-- | src/state/shell/index.tsx | 13 | ||||
-rw-r--r-- | src/state/shell/onboarding.tsx | 3 | ||||
-rw-r--r-- | src/state/shell/reminders.ts | 6 | ||||
-rw-r--r-- | src/state/shell/selected-feed.tsx | 3 |
6 files changed, 11 insertions, 18 deletions
diff --git a/src/state/shell/color-mode.tsx b/src/state/shell/color-mode.tsx index f16e2be53..f3339d240 100644 --- a/src/state/shell/color-mode.tsx +++ b/src/state/shell/color-mode.tsx @@ -1,5 +1,4 @@ import React from 'react' - import * as persisted from '#/state/persisted' type StateContext = { diff --git a/src/state/shell/composer.tsx b/src/state/shell/composer.tsx index 1fb08baa2..c9dbfbeac 100644 --- a/src/state/shell/composer.tsx +++ b/src/state/shell/composer.tsx @@ -1,10 +1,9 @@ +import React from 'react' import { AppBskyEmbedRecord, AppBskyRichtextFacet, PostModeration, } from '@atproto/api' -import React from 'react' - import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback' export interface ComposerOptsPostRef { diff --git a/src/state/shell/index.tsx b/src/state/shell/index.tsx index 7e41967f5..07909c000 100644 --- a/src/state/shell/index.tsx +++ b/src/state/shell/index.tsx @@ -1,23 +1,22 @@ import React from 'react' - -import {Provider as ColorModeProvider} from './color-mode' -import {Provider as ComposerProvider} from './composer' +import {Provider as ShellLayoutProvder} from './shell-layout' import {Provider as DrawerOpenProvider} from './drawer-open' import {Provider as DrawerSwipableProvider} from './drawer-swipe-disabled' import {Provider as MinimalModeProvider} from './minimal-mode' +import {Provider as ColorModeProvider} from './color-mode' import {Provider as OnboardingProvider} from './onboarding' -import {Provider as ShellLayoutProvder} from './shell-layout' +import {Provider as ComposerProvider} from './composer' import {Provider as TickEveryMinuteProvider} from './tick-every-minute' -export {useSetThemePrefs, useThemePrefs} from './color-mode' -export {useComposerControls, useComposerState} from './composer' export {useIsDrawerOpen, useSetDrawerOpen} from './drawer-open' export { useIsDrawerSwipeDisabled, useSetDrawerSwipeDisabled, } from './drawer-swipe-disabled' export {useMinimalShellMode, useSetMinimalShellMode} from './minimal-mode' -export {useOnboardingDispatch, useOnboardingState} from './onboarding' +export {useThemePrefs, useSetThemePrefs} from './color-mode' +export {useOnboardingState, useOnboardingDispatch} from './onboarding' +export {useComposerState, useComposerControls} from './composer' export {useTickEveryMinute} from './tick-every-minute' export function Provider({children}: React.PropsWithChildren<{}>) { diff --git a/src/state/shell/onboarding.tsx b/src/state/shell/onboarding.tsx index cd26e42c0..6a18b461f 100644 --- a/src/state/shell/onboarding.tsx +++ b/src/state/shell/onboarding.tsx @@ -1,7 +1,6 @@ import React from 'react' - -import {track} from '#/lib/analytics/analytics' import * as persisted from '#/state/persisted' +import {track} from '#/lib/analytics/analytics' export const OnboardingScreenSteps = { Welcome: 'Welcome', diff --git a/src/state/shell/reminders.ts b/src/state/shell/reminders.ts index 6f68b9b79..ee924eb00 100644 --- a/src/state/shell/reminders.ts +++ b/src/state/shell/reminders.ts @@ -1,9 +1,7 @@ -import {toHashCode} from 'lib/strings/helpers' - import * as persisted from '#/state/persisted' - -import {SessionAccount} from '../session' +import {toHashCode} from 'lib/strings/helpers' import {isOnboardingActive} from './onboarding' +import {SessionAccount} from '../session' export function shouldRequestEmailConfirmation(account: SessionAccount) { if (!account) { diff --git a/src/state/shell/selected-feed.tsx b/src/state/shell/selected-feed.tsx index 8a6e82636..a05d8661b 100644 --- a/src/state/shell/selected-feed.tsx +++ b/src/state/shell/selected-feed.tsx @@ -1,7 +1,6 @@ import React from 'react' - -import {isWeb} from '#/platform/detection' import * as persisted from '#/state/persisted' +import {isWeb} from '#/platform/detection' type StateContext = string type SetContext = (v: string) => void |