🐛(frontend) fix mail domain addition form
- remove link wrapping cancel button
This commit is contained in:
committed by
Sebastien Nobour
parent
e7aebfe59e
commit
d291e55a9e
@@ -12,7 +12,7 @@ import { Controller, FormProvider, useForm } from 'react-hook-form';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { Box, StyledLink, Text, TextErrors } from '@/components';
|
||||
import { Box, Text, TextErrors } from '@/components';
|
||||
import { useCreateMailDomain } from '@/features/mail-domains';
|
||||
|
||||
import { default as MailDomainsLogo } from '../assets/mail-domains-logo.svg';
|
||||
@@ -77,16 +77,14 @@ export const ModalCreateMailDomain = () => {
|
||||
<Modal
|
||||
isOpen
|
||||
leftActions={
|
||||
<StyledLink href="/mail-domains">
|
||||
<Button color="secondary" tabIndex={-1}>
|
||||
{t('Cancel')}
|
||||
</Button>
|
||||
</StyledLink>
|
||||
<Button color="secondary" onClick={() => router.push('/mail-domains/')}>
|
||||
{t('Cancel')}
|
||||
</Button>
|
||||
}
|
||||
hideCloseButton
|
||||
closeOnClickOutside
|
||||
closeOnEsc
|
||||
onClose={() => router.push('/mail-domains')}
|
||||
onClose={() => router.push('/mail-domains/')}
|
||||
rightActions={
|
||||
<Button
|
||||
onClick={onSubmitCallback}
|
||||
|
||||
Reference in New Issue
Block a user