Refactor buttons (#1257)
* Refactor buttons * Complete components creation * Complete refactoring * fix lint * Complete button work
This commit is contained in:
@ -5,11 +5,8 @@ import { useRecoilValue } from 'recoil';
|
||||
import { useAuth } from '@/auth/hooks/useAuth';
|
||||
import { currentUserState } from '@/auth/states/currentUserState';
|
||||
import { AppPath } from '@/types/AppPath';
|
||||
import { ButtonVariant } from '@/ui/button/components/Button';
|
||||
import {
|
||||
ConfirmationModal,
|
||||
StyledConfirmationButton,
|
||||
} from '@/ui/modal/components/ConfirmationModal';
|
||||
import { Button } from '@/ui/button/components/Button';
|
||||
import { ConfirmationModal } from '@/ui/modal/components/ConfirmationModal';
|
||||
import { H2Title } from '@/ui/typography/components/H2Title';
|
||||
import { useDeleteUserAccountMutation } from '~/generated/graphql';
|
||||
|
||||
@ -40,9 +37,11 @@ export function DeleteAccount() {
|
||||
description="Delete account and all the associated data"
|
||||
/>
|
||||
|
||||
<StyledConfirmationButton
|
||||
<Button
|
||||
accent="danger"
|
||||
size="small"
|
||||
onClick={() => setIsDeleteAccountModalOpen(true)}
|
||||
variant={ButtonVariant.Secondary}
|
||||
variant="secondary"
|
||||
title="Delete account"
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user