1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-05-12 05:06:40 +07:00

notifications: notification settings page

This commit is contained in:
Fedor Katurov 2023-03-16 11:00:29 +06:00
parent d77a01d8bc
commit 7135d06673
17 changed files with 319 additions and 35 deletions

View file

@ -15,18 +15,14 @@ import styles from './styles.module.scss';
type ProfileAccountsProps = {};
const ProfileAccounts: FC<ProfileAccountsProps> = () => {
const { isLoading, accounts, dropAccount, openOauthWindow } = useOAuth();
const { showModal } = useModal();
const hasTelegram = useMemo(
() => accounts.some((acc) => acc.provider === 'telegram'),
[accounts],
);
const showTelegramModal = useCallback(
() => showModal(Dialog.TelegramAttach, {}),
[],
);
const {
isLoading,
accounts,
dropAccount,
openOauthWindow,
hasTelegram,
showTelegramModal,
} = useOAuth();
return (
<Group className={styles.wrap}>