forked from cerc-io/laconic-wallet
* Add url scheme and linking * Pass account to sign request page * Provide functionality for accepting or rejecting requests * Load account state before handling url * Refactor code * Make intent work when app is cleared from recents * Fix bug to populate data from intents * Fix bug to update data on subsequent requests * Pass correct network to sign messages from cosmos account * Fix bug to populate data for incoming intent * Allow spaces in url * Bad signature page * Review changes * Change page heading * Use correct regex * Clean up code * Use https in url * Set state properly --------- Co-authored-by: Adw8 <adwait@deepstacksoft.com>
143 lines
2.4 KiB
JavaScript
143 lines
2.4 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',
|
|
},
|
|
LoadingText: {
|
|
color: 'black',
|
|
fontSize: 18,
|
|
padding: 10,
|
|
},
|
|
requestMessage: {
|
|
borderWidth: 1,
|
|
borderRadius: 5,
|
|
marginTop: 50,
|
|
height: 50,
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
},
|
|
buttonContainer: {
|
|
marginTop: 50,
|
|
flexDirection: 'row',
|
|
marginLeft: 20,
|
|
justifyContent: 'space-evenly',
|
|
},
|
|
badRequestContainer: {
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
padding: 20,
|
|
},
|
|
messageText: {
|
|
color: 'black',
|
|
fontSize: 16,
|
|
textAlign: 'center',
|
|
marginBottom: 20,
|
|
},
|
|
});
|
|
|
|
export default styles;
|