|
|
|
@ -7,7 +7,7 @@ import type { Props } from '../../index';
|
|
|
|
|
// There could be only one account notification
|
|
|
|
|
export default (props: Props) => {
|
|
|
|
|
const { network, notification } = props.selectedAccount;
|
|
|
|
|
if (network && notification.type && notification.type !== 'loader-progress' && notification.type !== 'loader-info') {
|
|
|
|
|
if (network && notification.type && notification.title && notification.type !== 'loader-progress' && notification.type !== 'loader-info') {
|
|
|
|
|
if (notification.type === 'backend') {
|
|
|
|
|
// special case: backend is down
|
|
|
|
|
// TODO: this is a different component with "auto resolve" button
|
|
|
|
@ -27,7 +27,14 @@ export default (props: Props) => {
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
return (<Notification type={notification.type} title={notification.title} message={notification.message} />);
|
|
|
|
|
return (
|
|
|
|
|
<Notification
|
|
|
|
|
type={notification.type}
|
|
|
|
|
title={notification.title}
|
|
|
|
|
message={notification.message}
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
};
|