forked from cerc-io/laconic-wallet
* Reset form upon switching nws * Modify gitignore * Fix undefined field error * Add env steps in readme * Remove .env file * Fix indentation in readme * Disable buttons while loading (#99) * Disable buttons while loading * Disable pairing modal button * Format code
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;
|