* Basic setup for react native web * Comment unsupported react-native code * Add interface for keychain methods * Fix storeNetworkData method * Use mui dialog component * Modify key store file name * Fix add network and edit network screens * Fix sign message screen * Use light theme --------- Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
28 lines
667 B
TypeScript
28 lines
667 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}
|
|
disabled={isWalletCreating}
|
|
onPress={createWalletHandler}>
|
|
{isWalletCreating ? 'Creating' : 'Create Wallet'}
|
|
</Button>
|
|
</View>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
export default CreateWallet;
|