🐛(frontend) fix mail domain addition form
- remove link wrapping cancel button
This commit is contained in:
committed by
Sebastien Nobour
parent
e7aebfe59e
commit
d291e55a9e
@@ -17,6 +17,7 @@ and this project adheres to
|
|||||||
- 🐛(dimail) improve handling of dimail errors on failed mailbox creation #377
|
- 🐛(dimail) improve handling of dimail errors on failed mailbox creation #377
|
||||||
- 💬(frontend) fix group member removal text #382
|
- 💬(frontend) fix group member removal text #382
|
||||||
- 💬(frontend) fix add mail domain text #382
|
- 💬(frontend) fix add mail domain text #382
|
||||||
|
- 🐛(frontend) fix keyboard navigation on language picker #379
|
||||||
|
|
||||||
## [1.0.2] - 2024-08-30
|
## [1.0.2] - 2024-08-30
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import { Controller, FormProvider, useForm } from 'react-hook-form';
|
|||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
import { Box, StyledLink, Text, TextErrors } from '@/components';
|
import { Box, Text, TextErrors } from '@/components';
|
||||||
import { useCreateMailDomain } from '@/features/mail-domains';
|
import { useCreateMailDomain } from '@/features/mail-domains';
|
||||||
|
|
||||||
import { default as MailDomainsLogo } from '../assets/mail-domains-logo.svg';
|
import { default as MailDomainsLogo } from '../assets/mail-domains-logo.svg';
|
||||||
@@ -77,16 +77,14 @@ export const ModalCreateMailDomain = () => {
|
|||||||
<Modal
|
<Modal
|
||||||
isOpen
|
isOpen
|
||||||
leftActions={
|
leftActions={
|
||||||
<StyledLink href="/mail-domains">
|
<Button color="secondary" onClick={() => router.push('/mail-domains/')}>
|
||||||
<Button color="secondary" tabIndex={-1}>
|
{t('Cancel')}
|
||||||
{t('Cancel')}
|
</Button>
|
||||||
</Button>
|
|
||||||
</StyledLink>
|
|
||||||
}
|
}
|
||||||
hideCloseButton
|
hideCloseButton
|
||||||
closeOnClickOutside
|
closeOnClickOutside
|
||||||
closeOnEsc
|
closeOnEsc
|
||||||
onClose={() => router.push('/mail-domains')}
|
onClose={() => router.push('/mail-domains/')}
|
||||||
rightActions={
|
rightActions={
|
||||||
<Button
|
<Button
|
||||||
onClick={onSubmitCallback}
|
onClick={onSubmitCallback}
|
||||||
|
|||||||
Reference in New Issue
Block a user