From d4b0e49d5eee6786090e07129e0296b86b007364 Mon Sep 17 00:00:00 2001 From: Leandro Menezes Date: Fri, 8 Nov 2024 15:24:08 -0300 Subject: [PATCH] merge fixes --- .../src/components/FinancesApp.tsx | 2 +- .../desktop-client/src/components/Modals.tsx | 29 +------------------ .../src/components/common/SimpleTable.tsx | 1 - .../src/components/manager/BudgetList.tsx | 22 +++++++------- .../manager/subscribe/ConfirmPasswordForm.tsx | 1 - .../components/manager/subscribe/Login.tsx | 6 ++-- .../src/components/settings/index.tsx | 2 +- 7 files changed, 17 insertions(+), 46 deletions(-) diff --git a/packages/desktop-client/src/components/FinancesApp.tsx b/packages/desktop-client/src/components/FinancesApp.tsx index 9742456b88d..8bae4c5aefa 100644 --- a/packages/desktop-client/src/components/FinancesApp.tsx +++ b/packages/desktop-client/src/components/FinancesApp.tsx @@ -36,9 +36,9 @@ import { ManagePayeesPage } from './payees/ManagePayeesPage'; import { Reports } from './reports'; import { LoadingIndicator } from './reports/LoadingIndicator'; import { NarrowAlternate, WideComponent } from './responsive'; +import { useResponsive } from './responsive/ResponsiveProvider'; import { UserDirectoryPage } from './responsive/wide'; import { useMultiuserEnabled } from './ServerContext'; -import { useResponsive } from './responsive/ResponsiveProvider'; import { Settings } from './settings'; import { FloatableSidebar } from './sidebar'; import { Titlebar } from './Titlebar'; diff --git a/packages/desktop-client/src/components/Modals.tsx b/packages/desktop-client/src/components/Modals.tsx index 0670e490cf2..c6328470dd1 100644 --- a/packages/desktop-client/src/components/Modals.tsx +++ b/packages/desktop-client/src/components/Modals.tsx @@ -54,8 +54,8 @@ import { ImportYNAB5Modal } from './modals/manager/ImportYNAB5Modal'; import { ManageRulesModal } from './modals/ManageRulesModal'; import { MergeUnusedPayeesModal } from './modals/MergeUnusedPayeesModal'; import { NotesModal } from './modals/NotesModal'; -import { OutOfSyncMigrationsModal } from './modals/OutOfSyncMigrationsModal'; import { OpenIDEnableModal } from './modals/OpenIDEnableModal'; +import { OutOfSyncMigrationsModal } from './modals/OutOfSyncMigrationsModal'; import { PasswordEnableModal } from './modals/PasswordEnableModal'; import { PayeeAutocompleteModal } from './modals/PayeeAutocompleteModal'; import { ScheduledTransactionMenuModal } from './modals/ScheduledTransactionMenuModal'; @@ -640,33 +640,6 @@ export function Modals() { case 'enable-password-auth': return ; - case 'edit-access': - return ( - - ); - - case 'edit-user': - return ( - - ); - - case 'transfer-ownership': - return ; - - case 'enable-openid': - return ; - - case 'enable-password-auth': - return ; - default: throw new Error('Unknown modal'); } diff --git a/packages/desktop-client/src/components/common/SimpleTable.tsx b/packages/desktop-client/src/components/common/SimpleTable.tsx index a350157c248..6539d7655c0 100644 --- a/packages/desktop-client/src/components/common/SimpleTable.tsx +++ b/packages/desktop-client/src/components/common/SimpleTable.tsx @@ -6,7 +6,6 @@ import React, { type CSSProperties, } from 'react'; - import { View } from './View'; type SimpleTableProps = { diff --git a/packages/desktop-client/src/components/manager/BudgetList.tsx b/packages/desktop-client/src/components/manager/BudgetList.tsx index d34814631dd..5b2dc1cfed0 100644 --- a/packages/desktop-client/src/components/manager/BudgetList.tsx +++ b/packages/desktop-client/src/components/manager/BudgetList.tsx @@ -288,20 +288,20 @@ function FileItem({ > - + {file.name} - {multiuserEnabled && ( - - )} - + {multiuserEnabled && ( + + )} + - - + + ); } - diff --git a/packages/desktop-client/src/components/manager/subscribe/Login.tsx b/packages/desktop-client/src/components/manager/subscribe/Login.tsx index b53b78f9d23..f2d5188a460 100644 --- a/packages/desktop-client/src/components/manager/subscribe/Login.tsx +++ b/packages/desktop-client/src/components/manager/subscribe/Login.tsx @@ -255,10 +255,10 @@ export function Login() { }} > - If you lost your password, you likely still have access to your server - to manually reset it. + If you lost your password, you likely still have access to your + server to manually reset it. - + )} {loginMethods.length > 1 && ( diff --git a/packages/desktop-client/src/components/settings/index.tsx b/packages/desktop-client/src/components/settings/index.tsx index 442270903c9..7eda298b014 100644 --- a/packages/desktop-client/src/components/settings/index.tsx +++ b/packages/desktop-client/src/components/settings/index.tsx @@ -23,8 +23,8 @@ import { Page } from '../Page'; import { useResponsive } from '../responsive/ResponsiveProvider'; import { useServerVersion } from '../ServerContext'; -import { Backups } from './Backups'; import { AuthSettings } from './AuthSettings'; +import { Backups } from './Backups'; import { BudgetTypeSettings } from './BudgetTypeSettings'; import { EncryptionSettings } from './Encryption'; import { ExperimentalFeatures } from './Experimental';