From 3663ee57f3e3d83a03ca105e0dda11cd94f68c98 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 14 Jun 2023 20:00:16 -0500 Subject: Add testnet warning (#880) * Add testnet warning * Add watermarks to posts * Call the test environment the Sandbox --- src/view/com/util/PostSandboxWarning.tsx | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/view/com/util/PostSandboxWarning.tsx (limited to 'src/view/com/util/PostSandboxWarning.tsx') diff --git a/src/view/com/util/PostSandboxWarning.tsx b/src/view/com/util/PostSandboxWarning.tsx new file mode 100644 index 000000000..54495aa9b --- /dev/null +++ b/src/view/com/util/PostSandboxWarning.tsx @@ -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 ( + + + SANDBOX + + + ) + } + return null +} + +const styles = StyleSheet.create({ + container: { + position: 'absolute', + top: 6, + right: 10, + }, + text: { + fontWeight: 'bold', + opacity: 0.07, + }, +}) -- cgit 1.4.1