diff --git a/.eslintrc.js b/.eslintrc.js index d3bc83bb308..1555fe24795 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -250,16 +250,16 @@ module.exports = { './packages/desktop-client/src/components/autocomplete/**/*', './packages/desktop-client/src/components/budget/**/*', './packages/desktop-client/src/components/common/**/*', - // './packages/desktop-client/src/components/filters/**/*', - // './packages/desktop-client/src/components/gocardless/**/*', - // './packages/desktop-client/src/components/manager/**/*', - // './packages/desktop-client/src/components/mobile/**/*', - // './packages/desktop-client/src/components/modals/**/*', - // './packages/desktop-client/src/components/payees/**/*', - // './packages/desktop-client/src/components/reports/**/*', + './packages/desktop-client/src/components/filters/**/*', + './packages/desktop-client/src/components/gocardless/**/*', + './packages/desktop-client/src/components/manager/**/*', + './packages/desktop-client/src/components/mobile/**/*', + './packages/desktop-client/src/components/modals/**/*', + './packages/desktop-client/src/components/payees/**/*', + './packages/desktop-client/src/components/reports/**/*', // './packages/desktop-client/src/components/responsive/**/*', // './packages/desktop-client/src/components/rules/**/*', - // './packages/desktop-client/src/components/schedules/**/*', + './packages/desktop-client/src/components/schedules/**/*', // './packages/desktop-client/src/components/select/**/*', // './packages/desktop-client/src/components/settings/**/*', // './packages/desktop-client/src/components/sidebar/**/*', diff --git a/packages/desktop-client/src/components/App.tsx b/packages/desktop-client/src/components/App.tsx index 5f24096ef33..2dbdfd2033f 100644 --- a/packages/desktop-client/src/components/App.tsx +++ b/packages/desktop-client/src/components/App.tsx @@ -23,7 +23,7 @@ import { View } from './common/View'; import { DevelopmentTopBar } from './DevelopmentTopBar'; import { FatalError } from './FatalError'; import { FinancesApp } from './FinancesApp'; -import ManagementApp from './manager/ManagementApp'; +import { ManagementApp } from './manager/ManagementApp'; import { MobileWebMessage } from './MobileWebMessage'; import { UpdateNotification } from './UpdateNotification'; diff --git a/packages/desktop-client/src/components/FinancesApp.tsx b/packages/desktop-client/src/components/FinancesApp.tsx index 56a56e56b25..8479911dd32 100644 --- a/packages/desktop-client/src/components/FinancesApp.tsx +++ b/packages/desktop-client/src/components/FinancesApp.tsx @@ -30,11 +30,11 @@ import { BudgetMonthCountProvider } from './budget/BudgetMonthCountContext'; import { View } from './common/View'; import { GlobalKeys } from './GlobalKeys'; import { ManageRulesPage } from './ManageRulesPage'; -import MobileNavTabs from './mobile/MobileNavTabs'; +import { MobileNavTabs } from './mobile/MobileNavTabs'; import { Modals } from './Modals'; import { Notifications } from './Notifications'; import { ManagePayeesPage } from './payees/ManagePayeesPage'; -import Reports from './reports'; +import { Reports } from './reports'; import { NarrowAlternate, WideComponent } from './responsive'; import { ScrollProvider } from './ScrollProvider'; import Settings from './settings'; diff --git a/packages/desktop-client/src/components/Modals.tsx b/packages/desktop-client/src/components/Modals.tsx index 43704579b07..bbde5677a56 100644 --- a/packages/desktop-client/src/components/Modals.tsx +++ b/packages/desktop-client/src/components/Modals.tsx @@ -9,34 +9,34 @@ import useCategories from '../hooks/useCategories'; import useSyncServerStatus from '../hooks/useSyncServerStatus'; import { type CommonModalProps } from '../types/modals'; -import CategoryGroupMenu from './modals/CategoryGroupMenu'; -import CategoryMenu from './modals/CategoryMenu'; -import CloseAccount from './modals/CloseAccount'; -import ConfirmCategoryDelete from './modals/ConfirmCategoryDelete'; -import ConfirmTransactionEdit from './modals/ConfirmTransactionEdit'; -import CreateAccount from './modals/CreateAccount'; -import CreateEncryptionKey from './modals/CreateEncryptionKey'; -import CreateLocalAccount from './modals/CreateLocalAccount'; -import EditField from './modals/EditField'; -import EditRule from './modals/EditRule'; -import FixEncryptionKey from './modals/FixEncryptionKey'; -import GoCardlessExternalMsg from './modals/GoCardlessExternalMsg'; -import GoCardlessInitialise from './modals/GoCardlessInitialise'; -import ImportTransactions from './modals/ImportTransactions'; -import LoadBackup from './modals/LoadBackup'; -import ManageRulesModal from './modals/ManageRulesModal'; -import MergeUnusedPayees from './modals/MergeUnusedPayees'; -import Notes from './modals/Notes'; -import PlaidExternalMsg from './modals/PlaidExternalMsg'; -import ReportBudgetSummary from './modals/ReportBudgetSummary'; -import RolloverBudgetSummary from './modals/RolloverBudgetSummary'; -import SelectLinkedAccounts from './modals/SelectLinkedAccounts'; -import SingleInput from './modals/SingleInput'; -import SwitchBudgetType from './modals/SwitchBudgetType'; -import DiscoverSchedules from './schedules/DiscoverSchedules'; -import ScheduleDetails from './schedules/EditSchedule'; -import ScheduleLink from './schedules/LinkSchedule'; -import PostsOfflineNotification from './schedules/PostsOfflineNotification'; +import { CategoryGroupMenu } from './modals/CategoryGroupMenu'; +import { CategoryMenu } from './modals/CategoryMenu'; +import { CloseAccount } from './modals/CloseAccount'; +import { ConfirmCategoryDelete } from './modals/ConfirmCategoryDelete'; +import { ConfirmTransactionEdit } from './modals/ConfirmTransactionEdit'; +import { CreateAccount } from './modals/CreateAccount'; +import { CreateEncryptionKey } from './modals/CreateEncryptionKey'; +import { CreateLocalAccount } from './modals/CreateLocalAccount'; +import { EditField } from './modals/EditField'; +import { EditRule } from './modals/EditRule'; +import { FixEncryptionKey } from './modals/FixEncryptionKey'; +import { GoCardlessExternalMsg } from './modals/GoCardlessExternalMsg'; +import { GoCardlessInitialise } from './modals/GoCardlessInitialise'; +import { ImportTransactions } from './modals/ImportTransactions'; +import { LoadBackup } from './modals/LoadBackup'; +import { ManageRulesModal } from './modals/ManageRulesModal'; +import { MergeUnusedPayees } from './modals/MergeUnusedPayees'; +import { Notes } from './modals/Notes'; +import { PlaidExternalMsg } from './modals/PlaidExternalMsg'; +import { ReportBudgetSummary } from './modals/ReportBudgetSummary'; +import { RolloverBudgetSummary } from './modals/RolloverBudgetSummary'; +import { SelectLinkedAccounts } from './modals/SelectLinkedAccounts'; +import { SingleInput } from './modals/SingleInput'; +import { SwitchBudgetType } from './modals/SwitchBudgetType'; +import { DiscoverSchedules } from './schedules/DiscoverSchedules'; +import { PostsOfflineNotification } from './schedules/PostsOfflineNotification'; +import { ScheduleDetails } from './schedules/ScheduleDetails'; +import { ScheduleLink } from './schedules/ScheduleLink'; export function Modals() { const modalStack = useSelector(state => state.modals.modalStack); diff --git a/packages/desktop-client/src/components/filters/CompactFiltersButton.tsx b/packages/desktop-client/src/components/filters/CompactFiltersButton.tsx index 98661197bb7..c2d9dc0132a 100644 --- a/packages/desktop-client/src/components/filters/CompactFiltersButton.tsx +++ b/packages/desktop-client/src/components/filters/CompactFiltersButton.tsx @@ -7,12 +7,10 @@ type CompactFiltersButtonProps = { onClick: (newValue) => void; }; -function CompactFiltersButton({ onClick }: CompactFiltersButtonProps) { +export function CompactFiltersButton({ onClick }: CompactFiltersButtonProps) { return ( ); } - -export default CompactFiltersButton; diff --git a/packages/desktop-client/src/components/filters/FiltersButton.tsx b/packages/desktop-client/src/components/filters/FiltersButton.tsx index c368cc81d61..75e0b87aa0f 100644 --- a/packages/desktop-client/src/components/filters/FiltersButton.tsx +++ b/packages/desktop-client/src/components/filters/FiltersButton.tsx @@ -7,7 +7,7 @@ type FiltersButtonProps = { onClick: (newValue) => void; }; -function FiltersButton({ onClick }: FiltersButtonProps) { +export function FiltersButton({ onClick }: FiltersButtonProps) { return (