Refactor recoil v4 (#3266)

* Refactor recoil v4

* Fix ci
This commit is contained in:
Charles Bochet
2024-01-05 19:18:22 +01:00
committed by GitHub
parent 8455e15443
commit 96264e264c
140 changed files with 467 additions and 482 deletions

View File

@ -17,9 +17,7 @@ import { mockedAccounts } from '~/testing/mock-data/accounts';
export const SettingsAccountsEmailsInboxSettings = () => {
const navigate = useNavigate();
const { accountUuid = '' } = useParams();
const account = mockedAccounts.find(
(account) => account.uuid === accountUuid,
);
const account = mockedAccounts.find((account) => account.id === accountUuid);
useEffect(() => {
if (!account) navigate(AppPath.NotFound);
@ -40,7 +38,7 @@ export const SettingsAccountsEmailsInboxSettings = () => {
links={[
{ children: 'Accounts', href: '/settings/accounts' },
{ children: 'Emails', href: '/settings/accounts/emails' },
{ children: account?.email || '' },
{ children: account?.handle || '' },
]}
/>
<SettingsAccountsInboxSettingsSynchronizationSection