* 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>
29 lines
639 B
TypeScript
29 lines
639 B
TypeScript
import React from 'react';
|
|
import { Button, Dialog, Portal, Text } from 'react-native-paper';
|
|
|
|
const TxErrorDialog = ({
|
|
error,
|
|
visible,
|
|
hideDialog,
|
|
}: {
|
|
error: string;
|
|
visible: boolean;
|
|
hideDialog: () => void;
|
|
}) => {
|
|
return (
|
|
<Portal>
|
|
<Dialog visible={visible} onDismiss={hideDialog}>
|
|
<Dialog.Title>Transaction Error</Dialog.Title>
|
|
<Dialog.Content>
|
|
<Text variant="bodyMedium">{error}</Text>
|
|
</Dialog.Content>
|
|
<Dialog.Actions>
|
|
<Button onPress={hideDialog}>OK</Button>
|
|
</Dialog.Actions>
|
|
</Dialog>
|
|
</Portal>
|
|
);
|
|
};
|
|
|
|
export default TxErrorDialog;
|