remove sandbox labels (#2883)

* rm sandbox

* remove comment
This commit is contained in:
Hailey 2024-02-16 13:25:48 -08:00 committed by GitHub
parent b665f065b7
commit a2f462e261
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 6 additions and 88 deletions

View file

@ -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,
},
})