mirror of
https://github.com/nickzuber/meteorite.git
synced 2024-09-11 11:36:03 +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}
|
onClick={!loading ? (() => onFetchNotifications()) : undefined}
|
||||||
/>
|
/>
|
||||||
</EnhancedTab>
|
</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
|
<EnhancedTab
|
||||||
tooltip={!loading ? (
|
tooltip={!loading ? (
|
||||||
notificationsPermission === 'granted'
|
notificationsPermission === 'granted'
|
||||||
@ -724,28 +746,6 @@ export default function Scene ({
|
|||||||
}) : undefined}
|
}) : undefined}
|
||||||
/>
|
/>
|
||||||
</EnhancedTab>
|
</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 ? (
|
{query ? (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<div style={{display: 'inline-block'}} className="button-container-alt">
|
<div style={{display: 'inline-block'}} className="button-container-alt">
|
||||||
|
Loading…
Reference in New Issue
Block a user