diff options
author | Hailey <me@haileyok.com> | 2024-02-18 14:44:48 -0800 |
---|---|---|
committer | Hailey <me@haileyok.com> | 2024-02-18 14:44:48 -0800 |
commit | dcf9fa5e11695a2eb70170baabde584a01fc8d36 (patch) | |
tree | 913b624db9c36d5558bd3a31cd9d042f8f4ceb8b /src/view/com/util/PostSandboxWarning.tsx | |
parent | 31b7f7601563adea2dd8372b62c911b183953eec (diff) | |
parent | a40b43dfc922ced379b73ec3967d8fb297cea925 (diff) | |
download | voidsky-dcf9fa5e11695a2eb70170baabde584a01fc8d36.tar.zst |
Merge branch 'main' into fork/main
# Conflicts: # src/locale/locales/it/messages.po
Diffstat (limited to 'src/view/com/util/PostSandboxWarning.tsx')
-rw-r--r-- | src/view/com/util/PostSandboxWarning.tsx | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/view/com/util/PostSandboxWarning.tsx b/src/view/com/util/PostSandboxWarning.tsx deleted file mode 100644 index b2375c703..000000000 --- a/src/view/com/util/PostSandboxWarning.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import React from 'react' -import {StyleSheet, View} from 'react-native' -import {Text} from './text/Text' -import {usePalette} from 'lib/hooks/usePalette' -import {useSession} from '#/state/session' - -export function PostSandboxWarning() { - const {isSandbox} = useSession() - const pal = usePalette('default') - if (isSandbox) { - return ( - <View style={styles.container}> - <Text - type="title-2xl" - style={[pal.text, styles.text]} - accessible={false}> - SANDBOX - </Text> - </View> - ) - } - return null -} - -const styles = StyleSheet.create({ - container: { - position: 'absolute', - top: 6, - right: 10, - }, - text: { - fontWeight: 'bold', - opacity: 0.07, - }, -}) |