Put reset button at the bottom (#15)

* Put reset button at the bottom

* Review changes

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
This commit is contained in:
Adwait Gharpure 2024-02-15 10:24:34 +05:30 committed by GitHub
parent 09a3b9fc75
commit a158abac0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 29 deletions

View File

@ -14,7 +14,13 @@ const App = (): React.JSX.Element => {
return ( return (
<NavigationContainer> <NavigationContainer>
<Stack.Navigator> <Stack.Navigator>
<Stack.Screen name="Laconic" component={HomeScreen} /> <Stack.Screen
name="Laconic"
component={HomeScreen}
options={{
title: 'Laconic Wallet',
}}
/>
<Stack.Screen <Stack.Screen
name="SignMessage" name="SignMessage"
component={SignMessage} component={SignMessage}

View File

@ -97,35 +97,27 @@ const HomeScreen = () => {
{currentAccount && currentAccount.pubKey} {currentAccount && currentAccount.pubKey}
</Text> </Text>
</View> </View>
<View style={{ alignItems: 'center', marginTop: 30 }}>
<View style={{ flexDirection: 'row', justifyContent: 'center' }}> <Button
<View mode="contained"
style={{ onPress={() => {
marginTop: 20, navigation.navigate('SignMessage', {
marginRight: 10, selectedNetwork: network,
width: 150, });
alignSelf: 'center',
}}> }}>
<Button Sign Message
mode="contained" </Button>
onPress={() => { </View>
navigation.navigate('SignMessage', {
selectedNetwork: network, <View style={{ marginTop: 400, alignSelf: 'center' }}>
}); <Button
}}> mode="contained"
Sign Message buttonColor="#B82B0D"
</Button> onPress={async () => {
</View> setResetWalletDialog(true);
<View style={{ marginTop: 20, width: 150, alignSelf: 'center' }}> }}>
<Button Reset Wallet
mode="contained" </Button>
buttonColor="#B82B0D"
onPress={async () => {
setResetWalletDialog(true);
}}>
Reset Wallet
</Button>
</View>
</View> </View>
</View> </View>
) : ( ) : (