mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at offline-indicator 54 lines 1.6 kB view raw
1import React from 'react' 2import {StyleSheet, View} from 'react-native' 3import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' 4 5import {s} from 'lib/styles' 6import {usePalette} from 'lib/hooks/usePalette' 7import {isDesktopWeb} from 'platform/detection' 8import {useStores} from 'state/index' 9import {Text} from 'view/com/util/text/Text' 10import {Button} from 'view/com/util/forms/Button' 11 12export const snapPoints = [300] 13export const Component = () => { 14 const pal = usePalette('default') 15 const store = useStores() 16 17 return ( 18 <View style={[pal.view, styles.container]}> 19 <View style={[s.alignCenter]}> 20 <FontAwesomeIcon icon="wifi" style={s.white} size={50} /> 21 </View> 22 <Text type="title-lg" style={[s.textCenter, pal.text, s.pb20]}> 23 Offline Mode 24 </Text> 25 <Text style={[pal.text, s.pl20, s.pr20]}> 26 BlueSky works best when you're connected to the internet, you can still 27 browse around while offline. 28 </Text> 29 <Text style={[pal.text, s.pl20, s.pr20, s.pt10]}> 30 However, you won't be able to post or interact with posts/users until 31 you're back online. 32 </Text> 33 <Button 34 type="primary" 35 style={styles.btn} 36 onPress={() => store.shell.closeModal()}> 37 <Text type="button-lg" style={[pal.textLight, s.textCenter, s.white]}> 38 Close 39 </Text> 40 </Button> 41 </View> 42 ) 43} 44 45const styles = StyleSheet.create({ 46 container: { 47 flex: 1, 48 paddingBottom: isDesktopWeb ? 0 : 10, 49 }, 50 btn: { 51 marginHorizontal: 15, 52 marginTop: 20, 53 }, 54})