Add testnet warning (#880)
* Add testnet warning * Add watermarks to posts * Call the test environment the Sandbox
This commit is contained in:
parent
775b5e6578
commit
3663ee57f3
7 changed files with 81 additions and 9 deletions
32
src/view/com/util/PostSandboxWarning.tsx
Normal file
32
src/view/com/util/PostSandboxWarning.tsx
Normal file
|
@ -0,0 +1,32 @@
|
|||
import React from 'react'
|
||||
import {StyleSheet, View} from 'react-native'
|
||||
import {Text} from './text/Text'
|
||||
import {useStores} from 'state/index'
|
||||
import {usePalette} from 'lib/hooks/usePalette'
|
||||
|
||||
export function PostSandboxWarning() {
|
||||
const store = useStores()
|
||||
const pal = usePalette('default')
|
||||
if (store.session.isSandbox) {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text type="title-2xl" style={[pal.text, styles.text]}>
|
||||
SANDBOX
|
||||
</Text>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
position: 'absolute',
|
||||
top: 6,
|
||||
right: 10,
|
||||
},
|
||||
text: {
|
||||
fontWeight: 'bold',
|
||||
opacity: 0.07,
|
||||
},
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue