Refactor code (#18)

* Refactored accounts and sign message component

* Change sign message to hyperlink

* Refactor network dropdown

* Add types to utils

* Import react in index.js

* Use components for create wallet and reset dialog

* Remove inline styles from accounts component

* Remove inline styles from components

* Remove incorrectly placed async

* Make app responsive using flex

* Make review changes

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
This commit is contained in:
Adwait Gharpure
2024-02-19 12:12:18 +05:30
committed by Ashwin Phatak
co-authored by adwait
parent 8685c94151
commit cad0b6fae5
13 changed files with 276 additions and 199 deletions
+47 -20
View File
@@ -1,32 +1,59 @@
import { StyleSheet } from 'react-native';
const styles = StyleSheet.create({
headerContainer: {
padding: 15,
alignItems: 'center',
justifyContent: 'center',
createWalletContainer: {
marginTop: 20,
width: 150,
alignSelf: 'center',
},
headerText: {
color: 'black',
fontSize: 26,
fontWeight: 'bold',
signLink: {
alignItems: 'flex-end',
marginTop: 24,
},
sectionContainer: {
marginTop: 32,
paddingHorizontal: 24,
},
sectionTitle: {
fontSize: 22,
fontWeight: '600',
},
sectionDescription: {
marginTop: 8,
fontSize: 18,
fontWeight: '400',
hyperlink: {
fontWeight: '500',
textDecorationLine: 'underline',
},
highlight: {
fontWeight: '700',
},
accountContainer: {
marginTop: 24,
},
addAccountButton: {
marginTop: 24,
alignSelf: 'center',
},
accountComponent: {
flex: 4,
},
appContainer: {
flexGrow: 1,
marginTop: 24,
paddingHorizontal: 24,
},
resetContainer: {
flex: 1,
justifyContent: 'center',
},
resetButton: {
alignSelf: 'center',
},
signButton: {
marginTop: 20,
width: 150,
alignSelf: 'center',
},
signPage: {
paddingHorizontal: 24,
},
accountInfo: {
marginTop: 24,
marginBottom: 30,
},
networkDropdown: {
marginBottom: 20,
},
});
export default styles;