From 5b995eaf9f568aa8e798f5d44c741dc20c2d2112 Mon Sep 17 00:00:00 2001 From: alexsparkes Date: Sun, 11 Feb 2024 13:09:07 +0000 Subject: [PATCH] refactor(quickliks): Partition file --- .../modals/main/settings/sections/Navbar.jsx | 11 +- .../main/settings/sections/QuickLinks.jsx | 135 ++++++++++-------- .../modals/welcome/WelcomeSections.jsx | 2 +- 3 files changed, 87 insertions(+), 61 deletions(-) diff --git a/src/components/modals/main/settings/sections/Navbar.jsx b/src/components/modals/main/settings/sections/Navbar.jsx index bc3ee377..680c76e2 100644 --- a/src/components/modals/main/settings/sections/Navbar.jsx +++ b/src/components/modals/main/settings/sections/Navbar.jsx @@ -9,6 +9,7 @@ import AddModal from './quicklinks/AddModal'; import Checkbox from '../Checkbox'; import Dropdown from '../Dropdown'; +import Button from '../Button'; import { Row, Content, Action } from '../SettingsItem'; import Header from '../Header'; @@ -204,10 +205,12 @@ function Navbar() { )} /> - + - - + + + {this.state.items.length === 0 && (
@@ -205,10 +226,12 @@ export default class QuickLinks extends PureComponent { {variables.getMessage('modals.main.settings.sections.message.add_some')} - +
)} diff --git a/src/components/modals/welcome/WelcomeSections.jsx b/src/components/modals/welcome/WelcomeSections.jsx index aff74aac..e256b91d 100644 --- a/src/components/modals/welcome/WelcomeSections.jsx +++ b/src/components/modals/welcome/WelcomeSections.jsx @@ -195,7 +195,7 @@ class WelcomeSections extends PureComponent { - {' '} + {variables.getMessage('modals.welcome.sections.intro.notices.github_open')}