mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 15:35:35 +00:00
fix: disable shortcut when we cant go back to home
This commit is contained in:
@@ -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')}
|
||||
|
||||
@@ -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')}
|
||||
|
||||
Reference in New Issue
Block a user