4486 connect settingsaccountscalendars to backend (#4605)

* add useFindOneRecord and useUpdateOneRecord

* remove mock

* use calendar channel information in display

* renaming

* refactoring

* handleSyncEventsToggle

* improve typing using generics

* modifications after review

* rename components

* renaming
This commit is contained in:
bosiraphael
2024-03-27 15:01:00 +01:00
committed by GitHub
parent 5c40e3608b
commit 77e08daa79
11 changed files with 151 additions and 72 deletions

View File

@ -12,12 +12,12 @@ import { useDropdown } from '@/ui/layout/dropdown/hooks/useDropdown';
import { MenuItem } from '@/ui/navigation/menu-item/components/MenuItem';
type SettingsAccountsRowDropdownMenuProps = {
account: Pick<ConnectedAccount, 'id' | 'messageChannels'>;
item: Pick<ConnectedAccount, 'id' | 'messageChannels'>;
className?: string;
};
export const SettingsAccountsRowDropdownMenu = ({
account,
item: account,
className,
}: SettingsAccountsRowDropdownMenuProps) => {
const dropdownId = `settings-account-row-${account.id}`;