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>
29 lines
738 B
TypeScript
29 lines
738 B
TypeScript
import React from 'react';
|
|
import { Portal, Dialog, Button, Text } from 'react-native-paper';
|
|
import { ResetDialogProps } from '../types';
|
|
|
|
const ResetWalletDialog = ({
|
|
visible,
|
|
hideDialog,
|
|
onConfirm,
|
|
}: ResetDialogProps) => {
|
|
return (
|
|
<Portal>
|
|
<Dialog visible={visible} onDismiss={hideDialog}>
|
|
<Dialog.Title>Reset Wallet</Dialog.Title>
|
|
<Dialog.Content>
|
|
<Text variant="bodyMedium">Are you sure?</Text>
|
|
</Dialog.Content>
|
|
<Dialog.Actions>
|
|
<Button textColor="red" onPress={onConfirm}>
|
|
Yes
|
|
</Button>
|
|
<Button onPress={hideDialog}>No</Button>
|
|
</Dialog.Actions>
|
|
</Dialog>
|
|
</Portal>
|
|
);
|
|
};
|
|
|
|
export default ResetWalletDialog;
|