diff options
author | dan <dan.abramov@gmail.com> | 2024-12-13 17:16:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-13 17:16:53 +0000 |
commit | 356dad1932c3404f581b747127ae251dbe165bb3 (patch) | |
tree | d966d4c5fd4645f9897a984a018d7258399e1674 /src/components/Typography.tsx | |
parent | e2a7965e438db9f70d76d2d7a911aa4c4a42c122 (diff) | |
download | voidsky-356dad1932c3404f581b747127ae251dbe165bb3.tar.zst |
Remove the environment indirections (#7089)
* Use raw underlying globals for environment * Set dev EXPO_PUBLIC_ENV by exclusion
Diffstat (limited to 'src/components/Typography.tsx')
-rw-r--r-- | src/components/Typography.tsx | 3 |
1 files changed, 1 insertions, 2 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 />'`, |