From ebfd7bdc94b46fe95562c713952bccd3a11844fe Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 11 Jan 2023 17:30:32 -0600 Subject: [PATCH] Move "Import data" under settings --- CHANGELOG.md | 1 + app/soapbox/components/sidebar-menu.tsx | 10 ---------- app/soapbox/features/settings/index.tsx | 6 ++++++ app/soapbox/features/ui/components/link-footer.tsx | 3 --- 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a76c58a6e..1a2837a3ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Posts: letterbox images to 19:6 again. - Status Info: moved context (repost, pinned) to improve UX. - Posts: remove file icon from empty link previews. +- Settings: moved "Import data" under settings. ### Fixed - Layout: use accent color for "floating action button" (mobile compose button). diff --git a/app/soapbox/components/sidebar-menu.tsx b/app/soapbox/components/sidebar-menu.tsx index 766d3dc87e..7f3397bb21 100644 --- a/app/soapbox/components/sidebar-menu.tsx +++ b/app/soapbox/components/sidebar-menu.tsx @@ -28,7 +28,6 @@ const messages = defineMessages({ mutes: { id: 'navigation_bar.mutes', defaultMessage: 'Muted users' }, filters: { id: 'navigation_bar.filters', defaultMessage: 'Muted words' }, soapboxConfig: { id: 'navigation_bar.soapbox_config', defaultMessage: 'Soapbox config' }, - importData: { id: 'navigation_bar.import_data', defaultMessage: 'Import data' }, accountMigration: { id: 'navigation_bar.account_migration', defaultMessage: 'Move account' }, accountAliases: { id: 'navigation_bar.account_aliases', defaultMessage: 'Account aliases' }, logout: { id: 'navigation_bar.logout', defaultMessage: 'Logout' }, @@ -305,15 +304,6 @@ const SidebarMenu: React.FC = (): JSX.Element | null => { /> )} - {features.import && ( - - )} - { const navigateToMoveAccount = () => history.push('/settings/migration'); const navigateToAliases = () => history.push('/settings/aliases'); const navigateToBackups = () => history.push('/settings/backups'); + const navigateToImportData = () => history.push('/settings/import'); const isMfaEnabled = mfa.getIn(['settings', 'totp']); @@ -142,6 +144,10 @@ const Settings = () => { )} + {features.importData && ( + + )} + {features.security && ( )} diff --git a/app/soapbox/features/ui/components/link-footer.tsx b/app/soapbox/features/ui/components/link-footer.tsx index 333a01a217..14c19ed174 100644 --- a/app/soapbox/features/ui/components/link-footer.tsx +++ b/app/soapbox/features/ui/components/link-footer.tsx @@ -56,9 +56,6 @@ const LinkFooter: React.FC = (): JSX.Element => { {account.locked && ( )} - {features.import && ( - - )} }