diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Typography.tsx | 3 | ||||
-rw-r--r-- | src/components/dialogs/nuxs/index.tsx | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/components/Typography.tsx b/src/components/Typography.tsx index 3e202cb8f..4ed7f8371 100644 --- a/src/components/Typography.tsx +++ b/src/components/Typography.tsx @@ -8,7 +8,6 @@ import { renderChildrenWithEmoji, TextProps, } from '#/alf/typography' -import {IS_DEV} from '#/env' export type {TextProps} /** @@ -31,7 +30,7 @@ export function Text({ flags, }) - if (IS_DEV) { + if (__DEV__) { if (!emoji && childHasEmoji(children)) { logger.warn( `Text: emoji detected but emoji not enabled: "${children}"\n\nPlease add <Text emoji />'`, diff --git a/src/components/dialogs/nuxs/index.tsx b/src/components/dialogs/nuxs/index.tsx index 11d622a4d..10cae887b 100644 --- a/src/components/dialogs/nuxs/index.tsx +++ b/src/components/dialogs/nuxs/index.tsx @@ -15,7 +15,6 @@ import {useOnboardingState} from '#/state/shell' * NUXs */ import {isSnoozed, snooze, unsnooze} from '#/components/dialogs/nuxs/snoozing' -import {IS_DEV} from '#/env' type Context = { activeNux: Nux | undefined @@ -93,10 +92,10 @@ function Inner({ setActiveNux(undefined) }, [activeNux, setActiveNux]) - if (IS_DEV && typeof window !== 'undefined') { + if (__DEV__ && typeof window !== 'undefined') { // @ts-ignore window.clearNuxDialog = (id: Nux) => { - if (!IS_DEV || !id) return + if (!__DEV__ || !id) return resetNuxs([id]) unsnooze() } |