|
@@ -21,17 +21,9 @@ export const GlobalNotificationTypeIcon = (props: GlobalNotificationTypeIconProp
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Global notification
|
|
// Global notification
|
|
|
- const type = (__t != null && __t === 'mail') ? 'mail' : 'slack';
|
|
|
|
|
-
|
|
|
|
|
- const elemId = `notification-${type}-${_id}`;
|
|
|
|
|
-
|
|
|
|
|
- return (
|
|
|
|
|
- <>
|
|
|
|
|
- { type === 'mail' ? (
|
|
|
|
|
- <><i id={elemId} className='icon-fw fa fa-envelope-o'></i><UncontrolledTooltip target={elemId}>Mail</UncontrolledTooltip></>
|
|
|
|
|
- ) : (
|
|
|
|
|
- <><i id={elemId} className='icon-fw fa fa-hashtag'></i><UncontrolledTooltip target={elemId}>Slack</UncontrolledTooltip></>
|
|
|
|
|
- ) }
|
|
|
|
|
- </>
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ const elemId = `notification-${__t}-${_id}`;
|
|
|
|
|
+ const className = __t === 'mail' ? 'icon-fw fa fa-envelope-o' : 'icon-fw fa fa-hashtag';
|
|
|
|
|
+ const toolChip = __t === 'mail' ? 'Mail' : 'Slack';
|
|
|
|
|
+
|
|
|
|
|
+ return <><i id={elemId} className={className}></i><UncontrolledTooltip target={elemId}>{toolChip}</UncontrolledTooltip></>;
|
|
|
};
|
|
};
|