Improve not found page
parent
d7c6fbe11d
commit
a6e2429a13
|
@ -1,13 +1,22 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {Text, Button, View} from 'react-native'
|
import {Text, Button, View} from 'react-native'
|
||||||
|
import {ViewHeader} from '../com/util/ViewHeader'
|
||||||
import {useStores} from '../../state'
|
import {useStores} from '../../state'
|
||||||
|
|
||||||
export const NotFound = () => {
|
export const NotFound = () => {
|
||||||
const stores = useStores()
|
const stores = useStores()
|
||||||
return (
|
return (
|
||||||
<View style={{justifyContent: 'center', alignItems: 'center'}}>
|
<View>
|
||||||
<Text style={{fontSize: 20, fontWeight: 'bold'}}>Page not found</Text>
|
<ViewHeader title="Page not found" />
|
||||||
|
<View
|
||||||
|
style={{
|
||||||
|
justifyContent: 'center',
|
||||||
|
alignItems: 'center',
|
||||||
|
paddingTop: 100,
|
||||||
|
}}>
|
||||||
|
<Text style={{fontSize: 40, fontWeight: 'bold'}}>Page not found</Text>
|
||||||
<Button title="Home" onPress={() => stores.nav.navigate('/')} />
|
<Button title="Home" onPress={() => stores.nav.navigate('/')} />
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue