forked from cerc-io/laconic-wallet
* Disconnect pairing request when app is reset * Move files to respective folders * Add comments to describe flow * Add new line * remove request session context * Fix imports * Move hook to folder * Add undefined type * Move types to src * Move util functions to correct files * Remove typeroots from tsconfig --------- 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;
|