fix: disable shortcut when we cant go back to home

This commit is contained in:
Sonny
2024-11-02 02:52:39 +01:00
committed by Sonny
parent 757788bf9b
commit 13bff28876
5 changed files with 21 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ export default function MantineFormCollection({
return (
<MantineFormLayout handleSubmit={onSubmit} {...props}>
<BackToDashboard>
<BackToDashboard disabled={props.disableHomeLink}>
<TextInput
label={t('form.name')}
placeholder={t('form.name')}

View File

@@ -51,7 +51,7 @@ export default function MantineFormLink({
collectionId={collectionId}
{...props}
>
<BackToDashboard>
<BackToDashboard disabled={props.disableHomeLink}>
<TextInput
label={t('form.name')}
placeholder={t('form.name')}