mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 14:43:24 +00:00
fix: broken imports
This commit is contained in:
@@ -21,7 +21,7 @@ interface FormCollectionProps extends FormLayoutProps {
|
|||||||
handleSubmit: () => void;
|
handleSubmit: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MantineFormCollection({
|
export function FormCollection({
|
||||||
data,
|
data,
|
||||||
errors,
|
errors,
|
||||||
disableInputs = false,
|
disableInputs = false,
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ import { useForm } from '@inertiajs/react';
|
|||||||
import { route } from '@izzyjs/route/client';
|
import { route } from '@izzyjs/route/client';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import MantineFormCollection, {
|
import {
|
||||||
|
FormCollection,
|
||||||
FormCollectionData,
|
FormCollectionData,
|
||||||
} from '~/components/form/form_collection';
|
} from '~/components/form/form_collection';
|
||||||
import { Visibility } from '~/types/app';
|
import { Visibility } from '~/types/app';
|
||||||
@@ -29,7 +30,7 @@ export default function CreateCollectionPage({
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<MantineFormCollection
|
<FormCollection
|
||||||
title={t('collection.create')}
|
title={t('collection.create')}
|
||||||
textSubmitButton={t('form.create')}
|
textSubmitButton={t('form.create')}
|
||||||
canSubmit={!isFormDisabled}
|
canSubmit={!isFormDisabled}
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { useForm } from '@inertiajs/react';
|
import { useForm } from '@inertiajs/react';
|
||||||
import { route } from '@izzyjs/route/client';
|
import { route } from '@izzyjs/route/client';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import MantineFormCollection, {
|
import {
|
||||||
|
FormCollection,
|
||||||
FormCollectionData,
|
FormCollectionData,
|
||||||
} from '~/components/form/form_collection';
|
} from '~/components/form/form_collection';
|
||||||
import { Collection } from '~/types/app';
|
import { Collection } from '~/types/app';
|
||||||
@@ -27,7 +28,7 @@ export default function DeleteCollectionPage({
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<MantineFormCollection
|
<FormCollection
|
||||||
title={t('collection.delete')}
|
title={t('collection.delete')}
|
||||||
textSubmitButton={t('form.delete')}
|
textSubmitButton={t('form.delete')}
|
||||||
canSubmit={!processing}
|
canSubmit={!processing}
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ import { useForm } from '@inertiajs/react';
|
|||||||
import { route } from '@izzyjs/route/client';
|
import { route } from '@izzyjs/route/client';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import MantineFormCollection, {
|
import {
|
||||||
|
FormCollection,
|
||||||
FormCollectionData,
|
FormCollectionData,
|
||||||
} from '~/components/form/form_collection';
|
} from '~/components/form/form_collection';
|
||||||
import { Collection } from '~/types/app';
|
import { Collection } from '~/types/app';
|
||||||
@@ -38,7 +39,7 @@ export default function EditCollectionPage({
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<MantineFormCollection
|
<FormCollection
|
||||||
title={t('collection.edit')}
|
title={t('collection.edit')}
|
||||||
textSubmitButton={t('form.update')}
|
textSubmitButton={t('form.update')}
|
||||||
canSubmit={canSubmit}
|
canSubmit={canSubmit}
|
||||||
|
|||||||
Reference in New Issue
Block a user