From bbb45568adb4ac3b3bc6cb4c81da70b0fe605c2e Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 29 Aug 2022 08:23:05 +0200 Subject: [PATCH 1/2] Fix WebUI error in development mode (#1835) Caused by using JSX features without importing React Signed-off-by: Claire --- app/javascript/flavours/glitch/util/icons.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/javascript/flavours/glitch/util/icons.js b/app/javascript/flavours/glitch/util/icons.js index be566032e0..c3e362e39a 100644 --- a/app/javascript/flavours/glitch/util/icons.js +++ b/app/javascript/flavours/glitch/util/icons.js @@ -1,3 +1,5 @@ +import React from 'react'; + // Copied from emoji-mart for consistency with emoji picker and since // they don't export the icons in the package export const loupeIcon = ( From 0495302f1ca811e5ed48ed49b2d291fc119e9dc6 Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 30 Aug 2022 10:57:27 +0200 Subject: [PATCH 2/2] Fix local settings navigation (#1836) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The “filters” page was removed, but not from the navigation, which would offset everything. --- .../local_settings/navigation/index.js | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/app/javascript/flavours/glitch/features/local_settings/navigation/index.js b/app/javascript/flavours/glitch/features/local_settings/navigation/index.js index ab3a554bf3..d085a606c3 100644 --- a/app/javascript/flavours/glitch/features/local_settings/navigation/index.js +++ b/app/javascript/flavours/glitch/features/local_settings/navigation/index.js @@ -61,34 +61,27 @@ class LocalSettingsNavigation extends React.PureComponent { active={index === 3} index={3} onNavigate={onNavigate} - icon='filter' - title={intl.formatMessage(messages.filters)} + icon='angle-double-up' + title={intl.formatMessage(messages.collapsed)} /> -