3434 connect settingsaccountsemails to the backend (#3584)

* wip

* wip

* update sync settings

* fix key in map

* connect email visibility to backend

* finished

* improve typing
This commit is contained in:
bosiraphael
2024-01-22 18:29:14 +01:00
committed by GitHub
parent 062bbd57a3
commit 6aad59d0be
13 changed files with 137 additions and 68 deletions

View File

@ -2,7 +2,8 @@ import { ReactNode } from 'react';
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { Account } from '@/accounts/types/Account';
import { ConnectedAccount } from '@/accounts/types/ConnectedAccount';
import { MessageChannel } from '@/accounts/types/MessageChannel';
import { IconComponent } from '@/ui/display/icon/types/IconComponent';
import { CardContent } from '@/ui/layout/card/components/CardContent';
@ -18,7 +19,7 @@ const StyledRow = styled(CardContent)`
`;
type SettingsAccountRowProps = {
account: Account;
account: ConnectedAccount | MessageChannel;
divider?: boolean;
LeftIcon: IconComponent;
onClick?: () => void;