mirror of
https://github.com/nickzuber/meteorite.git
synced 2024-11-29 09:31:15 +03:00
Move notifications tab over
This commit is contained in:
parent
b27c4bc962
commit
2f91a93555
@ -701,6 +701,28 @@ export default function Scene ({
|
||||
onClick={!loading ? (() => onFetchNotifications()) : undefined}
|
||||
/>
|
||||
</EnhancedTab>
|
||||
<EnhancedTab tooltip={!loading ? "Mark all as read" : null} disabled={loading}>
|
||||
<Icon.DoneAll
|
||||
opacity={0.9}
|
||||
onClick={!loading ? (() => {
|
||||
const response = window.confirm('Are you sure you want to mark all your notifications as read?');
|
||||
if (response) {
|
||||
onMarkAllAsStaged();
|
||||
}
|
||||
}) : undefined}
|
||||
/>
|
||||
</EnhancedTab>
|
||||
<EnhancedTab tooltip={!loading ? "Delete all of your notifications from the cache" : null} disabled={loading}>
|
||||
<Icon.Trash
|
||||
opacity={0.9}
|
||||
onClick={!loading ? (() => {
|
||||
const response = window.confirm('Are you sure you want to clear the cache?');
|
||||
if (response) {
|
||||
onClearCache();
|
||||
}
|
||||
}) : undefined}
|
||||
/>
|
||||
</EnhancedTab>
|
||||
<EnhancedTab
|
||||
tooltip={!loading ? (
|
||||
notificationsPermission === 'granted'
|
||||
@ -724,28 +746,6 @@ export default function Scene ({
|
||||
}) : undefined}
|
||||
/>
|
||||
</EnhancedTab>
|
||||
<EnhancedTab tooltip={!loading ? "Mark all as read" : null} disabled={loading}>
|
||||
<Icon.DoneAll
|
||||
opacity={0.9}
|
||||
onClick={!loading ? (() => {
|
||||
const response = window.confirm('Are you sure you want to mark all your notifications as read?');
|
||||
if (response) {
|
||||
onMarkAllAsStaged();
|
||||
}
|
||||
}) : undefined}
|
||||
/>
|
||||
</EnhancedTab>
|
||||
<EnhancedTab tooltip={!loading ? "Delete all of your notifications from the cache" : null} disabled={loading}>
|
||||
<Icon.Trash
|
||||
opacity={0.9}
|
||||
onClick={!loading ? (() => {
|
||||
const response = window.confirm('Are you sure you want to clear the cache?');
|
||||
if (response) {
|
||||
onClearCache();
|
||||
}
|
||||
}) : undefined}
|
||||
/>
|
||||
</EnhancedTab>
|
||||
{query ? (
|
||||
<React.Fragment>
|
||||
<div style={{display: 'inline-block'}} className="button-container-alt">
|
||||
|
Loading…
Reference in New Issue
Block a user