diff options
author | Hailey <me@haileyok.com> | 2024-02-16 13:25:48 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 13:25:48 -0800 |
commit | a2f462e26195a8a29e8bacfdadda7c5bbef2305f (patch) | |
tree | 4b86bde577702fea4c65864b5c0b2bd149ac7fd8 /src/view/com/util/PostSandboxWarning.tsx | |
parent | b665f065b7b63cb34bf11cb66e255131332fc7f2 (diff) | |
download | voidsky-a2f462e26195a8a29e8bacfdadda7c5bbef2305f.tar.zst |
remove sandbox labels (#2883)
* rm sandbox * remove comment
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, - }, -}) |