1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-25 16:38:08 +00:00

added backend notification

This commit is contained in:
Szymon Lesisz 2018-10-01 12:00:28 +02:00
parent 9fcd81924e
commit 7375f70a18

View File

@ -11,23 +11,24 @@ export default (props: Props) => {
if (notification.type === 'backend') { if (notification.type === 'backend') {
// special case: backend is down // special case: backend is down
// TODO: this is a different component with "auto resolve" button // TODO: this is a different component with "auto resolve" button
/*
return ( return (
<Notification <Notification
type="error" type="error"
title="Backend not connected" title={notification.title}
message={notification.message}
actions={ actions={
[{ [{
label: 'Try again', label: 'Connect',
callback: async () => { callback: async () => {
await props.blockchainReconnect(network.network); await props.blockchainReconnect('trop');
}, },
}] }]
} }
/> />
); );
*/
return (<Notification type="error" title={notification.title} message={notification.message} />); // return (<Notification type="error" title={notification.title} message={notification.message} />);
} }
return (<Notification type={notification.type} title={notification.title} message={notification.message} />); return (<Notification type={notification.type} title={notification.title} message={notification.message} />);
} }