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 (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Laconic" component={HomeScreen} />
<Stack.Screen
name="Laconic"
component={HomeScreen}
options={{
title: 'Laconic Wallet',
}}
/>
<Stack.Screen
name="SignMessage"
component={SignMessage}

View File

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