From e333453343c718057f2bb547eaf7f4d0d7edda82 Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 23 Feb 2024 19:02:16 +0100 Subject: [PATCH] Use Warning icon for CWs in app settings --- .../features/local_settings/navigation/index.jsx | 5 +++-- .../features/local_settings/navigation/item/index.jsx | 4 +--- app/javascript/flavours/glitch/styles/components.scss | 11 +++-------- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/app/javascript/flavours/glitch/features/local_settings/navigation/index.jsx b/app/javascript/flavours/glitch/features/local_settings/navigation/index.jsx index 00744fa2ae..10d4097eef 100644 --- a/app/javascript/flavours/glitch/features/local_settings/navigation/index.jsx +++ b/app/javascript/flavours/glitch/features/local_settings/navigation/index.jsx @@ -10,9 +10,9 @@ import ExpandLessIcon from '@/material-icons/400-24px/expand_less.svg?react'; import ImageIcon from '@/material-icons/400-24px/image.svg?react'; import ManufacturingIcon from '@/material-icons/400-24px/manufacturing.svg?react'; import SettingsIcon from '@/material-icons/400-24px/settings-fill.svg?react'; +import WarningIcon from '@/material-icons/400-24px/warning.svg?react'; import { preferencesLink } from 'flavours/glitch/utils/backend_links'; - import LocalSettingsNavigationItem from './item'; const messages = defineMessages({ @@ -60,7 +60,8 @@ class LocalSettingsNavigation extends PureComponent { active={index === 2} index={2} onNavigate={onNavigate} - textIcon='CW' + icon='warning' + iconComponent={WarningIcon} title={intl.formatMessage(messages.content_warnings)} /> : (textIcon ? {textIcon} : null); + const iconElem = icon ? : null; if (href) return (