forked from cerc-io/laconic-wallet
* 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>
27 lines
629 B
TypeScript
27 lines
629 B
TypeScript
import { View } from 'react-native';
|
|
import React from 'react';
|
|
import { Button } from 'react-native-paper';
|
|
|
|
import { CreateWalletProps } from '../types';
|
|
import styles from '../styles/stylesheet';
|
|
|
|
const CreateWallet = ({
|
|
isWalletCreating,
|
|
createWalletHandler,
|
|
}: CreateWalletProps) => {
|
|
return (
|
|
<View>
|
|
<View style={styles.createWalletContainer}>
|
|
<Button
|
|
mode="contained"
|
|
loading={isWalletCreating}
|
|
onPress={createWalletHandler}>
|
|
{isWalletCreating ? 'Creating' : 'Create Wallet'}
|
|
</Button>
|
|
</View>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
export default CreateWallet;
|