From 63444052e8db9d2333b887a5ba5fd261e7df52db Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 11 Sep 2024 20:01:27 -0500 Subject: [PATCH] Rename --- src/App.native.tsx | 4 ++-- src/App.web.tsx | 4 ++-- .../{nudges => nuxs}/TenMillion/icons/OnePercent.tsx | 0 .../TenMillion/icons/PointOnePercent.tsx | 0 .../{nudges => nuxs}/TenMillion/icons/TenPercent.tsx | 0 .../TenMillion/icons/TwentyFivePercent.tsx | 0 .../dialogs/{nudges => nuxs}/TenMillion/index.tsx | 10 +++++----- src/components/dialogs/{nudges => nuxs}/index.tsx | 4 ++-- 8 files changed, 11 insertions(+), 11 deletions(-) rename src/components/dialogs/{nudges => nuxs}/TenMillion/icons/OnePercent.tsx (100%) rename src/components/dialogs/{nudges => nuxs}/TenMillion/icons/PointOnePercent.tsx (100%) rename src/components/dialogs/{nudges => nuxs}/TenMillion/icons/TenPercent.tsx (100%) rename src/components/dialogs/{nudges => nuxs}/TenMillion/icons/TwentyFivePercent.tsx (100%) rename src/components/dialogs/{nudges => nuxs}/TenMillion/index.tsx (97%) rename src/components/dialogs/{nudges => nuxs}/index.tsx (90%) diff --git a/src/App.native.tsx b/src/App.native.tsx index 95625bdff5..83f133e990 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -57,13 +57,13 @@ import * as Toast from '#/view/com/util/Toast' import {Shell} from '#/view/shell' import {ThemeProvider as Alf} from '#/alf' import {useColorModeTheme} from '#/alf/util/useColorModeTheme' +import {NuxDialogs} from '#/components/dialogs/nuxs' import {useStarterPackEntry} from '#/components/hooks/useStarterPackEntry' import {Provider as IntentDialogProvider} from '#/components/intents/IntentDialogs' import {Provider as PortalProvider} from '#/components/Portal' import {Splash} from '#/Splash' import {BackgroundNotificationPreferencesProvider} from '../modules/expo-background-notification-handler/src/BackgroundNotificationHandlerProvider' import {AudioCategory, PlatformInfo} from '../modules/expo-bluesky-swiss-army' -import {NudgeDialogs} from '#/components/dialogs/nudges' SplashScreen.preventAutoHideAsync() @@ -132,7 +132,7 @@ function InnerApp() { style={s.h100pct}> - + diff --git a/src/App.web.tsx b/src/App.web.tsx index 79120ffdbf..ff9944fa4a 100644 --- a/src/App.web.tsx +++ b/src/App.web.tsx @@ -46,11 +46,11 @@ import {ToastContainer} from '#/view/com/util/Toast.web' import {Shell} from '#/view/shell/index' import {ThemeProvider as Alf} from '#/alf' import {useColorModeTheme} from '#/alf/util/useColorModeTheme' +import {NuxDialogs} from '#/components/dialogs/nuxs' import {useStarterPackEntry} from '#/components/hooks/useStarterPackEntry' import {Provider as IntentDialogProvider} from '#/components/intents/IntentDialogs' import {Provider as PortalProvider} from '#/components/Portal' import {BackgroundNotificationPreferencesProvider} from '../modules/expo-background-notification-handler/src/BackgroundNotificationHandlerProvider' -import {NudgeDialogs} from '#/components/dialogs/nudges' function InnerApp() { const [isReady, setIsReady] = React.useState(false) @@ -114,7 +114,7 @@ function InnerApp() { - + diff --git a/src/components/dialogs/nudges/TenMillion/icons/OnePercent.tsx b/src/components/dialogs/nuxs/TenMillion/icons/OnePercent.tsx similarity index 100% rename from src/components/dialogs/nudges/TenMillion/icons/OnePercent.tsx rename to src/components/dialogs/nuxs/TenMillion/icons/OnePercent.tsx diff --git a/src/components/dialogs/nudges/TenMillion/icons/PointOnePercent.tsx b/src/components/dialogs/nuxs/TenMillion/icons/PointOnePercent.tsx similarity index 100% rename from src/components/dialogs/nudges/TenMillion/icons/PointOnePercent.tsx rename to src/components/dialogs/nuxs/TenMillion/icons/PointOnePercent.tsx diff --git a/src/components/dialogs/nudges/TenMillion/icons/TenPercent.tsx b/src/components/dialogs/nuxs/TenMillion/icons/TenPercent.tsx similarity index 100% rename from src/components/dialogs/nudges/TenMillion/icons/TenPercent.tsx rename to src/components/dialogs/nuxs/TenMillion/icons/TenPercent.tsx diff --git a/src/components/dialogs/nudges/TenMillion/icons/TwentyFivePercent.tsx b/src/components/dialogs/nuxs/TenMillion/icons/TwentyFivePercent.tsx similarity index 100% rename from src/components/dialogs/nudges/TenMillion/icons/TwentyFivePercent.tsx rename to src/components/dialogs/nuxs/TenMillion/icons/TwentyFivePercent.tsx diff --git a/src/components/dialogs/nudges/TenMillion/index.tsx b/src/components/dialogs/nuxs/TenMillion/index.tsx similarity index 97% rename from src/components/dialogs/nudges/TenMillion/index.tsx rename to src/components/dialogs/nuxs/TenMillion/index.tsx index e110ed1ffb..663c095607 100644 --- a/src/components/dialogs/nudges/TenMillion/index.tsx +++ b/src/components/dialogs/nuxs/TenMillion/index.tsx @@ -28,10 +28,10 @@ import { } from '#/alf' import {Button, ButtonIcon, ButtonText} from '#/components/Button' import * as Dialog from '#/components/Dialog' -import {useContext} from '#/components/dialogs/nudges' -import {OnePercent} from '#/components/dialogs/nudges/TenMillion/icons/OnePercent' -import {PointOnePercent} from '#/components/dialogs/nudges/TenMillion/icons/PointOnePercent' -import {TenPercent} from '#/components/dialogs/nudges/TenMillion/icons/TenPercent' +import {useContext} from '#/components/dialogs/nuxs' +import {OnePercent} from '#/components/dialogs/nuxs/TenMillion/icons/OnePercent' +import {PointOnePercent} from '#/components/dialogs/nuxs/TenMillion/icons/PointOnePercent' +import {TenPercent} from '#/components/dialogs/nuxs/TenMillion/icons/TenPercent' import {Divider} from '#/components/Divider' import {GradientFill} from '#/components/GradientFill' import {ArrowOutOfBox_Stroke2_Corner0_Rounded as Share} from '#/components/icons/ArrowOutOfBox' @@ -39,7 +39,7 @@ import {Download_Stroke2_Corner0_Rounded as Download} from '#/components/icons/D import {Image_Stroke2_Corner0_Rounded as ImageIcon} from '#/components/icons/Image' import {Loader} from '#/components/Loader' import {Text} from '#/components/Typography' -// import {TwentyFivePercent} from '#/components/dialogs/nudges/TenMillion/icons/TwentyFivePercent' +// import {TwentyFivePercent} from '#/components/dialogs/nuxs/TenMillion/icons/TwentyFivePercent' const DEBUG = false const RATIO = 8 / 10 diff --git a/src/components/dialogs/nudges/index.tsx b/src/components/dialogs/nuxs/index.tsx similarity index 90% rename from src/components/dialogs/nudges/index.tsx rename to src/components/dialogs/nuxs/index.tsx index eabe60c176..401dd3e669 100644 --- a/src/components/dialogs/nudges/index.tsx +++ b/src/components/dialogs/nuxs/index.tsx @@ -2,7 +2,7 @@ import React from 'react' import {useSession} from '#/state/session' import * as Dialog from '#/components/Dialog' -import {TenMillion} from '#/components/dialogs/nudges/TenMillion' +import {TenMillion} from '#/components/dialogs/nuxs/TenMillion' type Context = { controls: { @@ -21,7 +21,7 @@ export function useContext() { let SHOWN = false -export function NudgeDialogs() { +export function NuxDialogs() { const {hasSession} = useSession() const tenMillion = Dialog.useDialogControl()