From 8604b7ca3895e675d5cc1154cf031f13db50478a Mon Sep 17 00:00:00 2001 From: Lucas Leite Date: Wed, 18 Sep 2024 09:08:13 -0300 Subject: [PATCH 1/2] Allow managers to sent announcements --- src/settings/components/SettingsMenu.jsx | 28 +++++++++++------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/settings/components/SettingsMenu.jsx b/src/settings/components/SettingsMenu.jsx index 7085d47a5a..386f47400d 100644 --- a/src/settings/components/SettingsMenu.jsx +++ b/src/settings/components/SettingsMenu.jsx @@ -141,21 +141,19 @@ const SettingsMenu = () => { <> - {admin && ( - <> - } - selected={location.pathname === '/settings/announcement'} - /> - } - selected={location.pathname === '/settings/server'} - /> - + } + selected={location.pathname === '/settings/announcement'} + /> + {admin && ( + } + selected={location.pathname === '/settings/server'} + /> )} Date: Wed, 18 Sep 2024 09:14:17 -0300 Subject: [PATCH 2/2] Fix lint issue --- src/settings/components/SettingsMenu.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/components/SettingsMenu.jsx b/src/settings/components/SettingsMenu.jsx index 386f47400d..3d0cbaf237 100644 --- a/src/settings/components/SettingsMenu.jsx +++ b/src/settings/components/SettingsMenu.jsx @@ -147,7 +147,7 @@ const SettingsMenu = () => { icon={} selected={location.pathname === '/settings/announcement'} /> - {admin && ( + {admin && (