forked from cerc-io/laconic-wallet
* Display HD path on sign message page * Create component for displaying account details * Add retrieve accounts function * Load accounts after closing app * Fix the retrieve accounts function * Use hdpath instead of id * Check if keystore is empty while retrieving accounts * Add spinner when accounts are being fetched * Display complete hd paths after reloading the app * Remove any return type * Store public key and address * Modify sign message function to use path * Fix the add accounts functionality
113 lines
1.9 KiB
JavaScript
113 lines
1.9 KiB
JavaScript
import { StyleSheet } from 'react-native';
|
|
|
|
const styles = StyleSheet.create({
|
|
createWalletContainer: {
|
|
marginTop: 20,
|
|
width: 150,
|
|
alignSelf: 'center',
|
|
},
|
|
signLink: {
|
|
alignItems: 'flex-end',
|
|
marginTop: 24,
|
|
},
|
|
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,
|
|
},
|
|
dialogTitle: {
|
|
padding: 10,
|
|
},
|
|
dialogContents: {
|
|
marginTop: 24,
|
|
padding: 10,
|
|
borderWidth: 1,
|
|
borderRadius: 10,
|
|
},
|
|
dialogWarning: {
|
|
color: 'red',
|
|
},
|
|
gridContainer: {
|
|
flexDirection: 'row',
|
|
flexWrap: 'wrap',
|
|
justifyContent: 'center',
|
|
},
|
|
gridItem: {
|
|
width: '25%',
|
|
margin: 8,
|
|
padding: 6,
|
|
borderWidth: 1,
|
|
borderColor: '#ccc',
|
|
borderRadius: 8,
|
|
alignItems: 'center',
|
|
justifyContent: 'flex-start',
|
|
},
|
|
HDcontainer: {
|
|
marginTop: 24,
|
|
paddingHorizontal: 8,
|
|
},
|
|
HDrowContainer: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
},
|
|
HDtext: {
|
|
color: 'black',
|
|
fontSize: 18,
|
|
margin: 4,
|
|
},
|
|
HDtextInput: {
|
|
flex: 1,
|
|
},
|
|
HDbuttonContainer: {
|
|
marginTop: 20,
|
|
width: 200,
|
|
alignSelf: 'center',
|
|
spinnerContainer: {
|
|
flex: 1,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
},
|
|
},
|
|
});
|
|
|
|
export default styles;
|