@homefile/components-v2 2.14.15 → 2.14.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,7 +12,7 @@ export const NotificationsReminder = ({ onClick, total }) => {
|
|
|
12
12
|
const hasNotifications = total > 0;
|
|
13
13
|
const bg = hasNotifications
|
|
14
14
|
? 'linear-gradient(120deg, #0b8dd7, #730bd7, #0bd7ac)'
|
|
15
|
-
: '
|
|
15
|
+
: 'blue.4';
|
|
16
16
|
return (_jsx(Tooltip, { label: t('tooltips.notifications'), children: _jsx(Box, { id: "notificationsRemember", "data-testid": "notifications-reminder", children: _jsxs(Flex, { gap: "1", as: "button", onClick: onClick, children: [_jsx(Img, { src: Speaker, "aria-label": t('tooltips.notifications'), h: "26px", w: "auto" }), !isMobile && (_jsx(NumberBadge, { total: total, background: bg, backgroundSize: 100, animation: `${bgGradient} 6s linear infinite` }))] }) }) }));
|
|
17
17
|
};
|
|
18
18
|
const bgGradient = keyframes `
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ export const NotificationsReminder = ({ onClick, total }: AppBarIconI) => {
|
|
|
15
15
|
const hasNotifications = total > 0
|
|
16
16
|
const bg = hasNotifications
|
|
17
17
|
? 'linear-gradient(120deg, #0b8dd7, #730bd7, #0bd7ac)'
|
|
18
|
-
: '
|
|
18
|
+
: 'blue.4'
|
|
19
19
|
return (
|
|
20
20
|
<Tooltip label={t('tooltips.notifications')}>
|
|
21
21
|
<Box id="notificationsRemember" data-testid="notifications-reminder">
|