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;
|
||||
}
|
||||
|
||||
export function MantineFormCollection({
|
||||
export function FormCollection({
|
||||
data,
|
||||
errors,
|
||||
disableInputs = false,
|
||||
|
||||
@@ -2,7 +2,8 @@ import { useForm } from '@inertiajs/react';
|
||||
import { route } from '@izzyjs/route/client';
|
||||
import { useMemo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import MantineFormCollection, {
|
||||
import {
|
||||
FormCollection,
|
||||
FormCollectionData,
|
||||
} from '~/components/form/form_collection';
|
||||
import { Visibility } from '~/types/app';
|
||||
@@ -29,7 +30,7 @@ export default function CreateCollectionPage({
|
||||
};
|
||||
|
||||
return (
|
||||
<MantineFormCollection
|
||||
<FormCollection
|
||||
title={t('collection.create')}
|
||||
textSubmitButton={t('form.create')}
|
||||
canSubmit={!isFormDisabled}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { useForm } from '@inertiajs/react';
|
||||
import { route } from '@izzyjs/route/client';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import MantineFormCollection, {
|
||||
import {
|
||||
FormCollection,
|
||||
FormCollectionData,
|
||||
} from '~/components/form/form_collection';
|
||||
import { Collection } from '~/types/app';
|
||||
@@ -27,7 +28,7 @@ export default function DeleteCollectionPage({
|
||||
};
|
||||
|
||||
return (
|
||||
<MantineFormCollection
|
||||
<FormCollection
|
||||
title={t('collection.delete')}
|
||||
textSubmitButton={t('form.delete')}
|
||||
canSubmit={!processing}
|
||||
|
||||
@@ -2,7 +2,8 @@ import { useForm } from '@inertiajs/react';
|
||||
import { route } from '@izzyjs/route/client';
|
||||
import { useMemo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import MantineFormCollection, {
|
||||
import {
|
||||
FormCollection,
|
||||
FormCollectionData,
|
||||
} from '~/components/form/form_collection';
|
||||
import { Collection } from '~/types/app';
|
||||
@@ -38,7 +39,7 @@ export default function EditCollectionPage({
|
||||
};
|
||||
|
||||
return (
|
||||
<MantineFormCollection
|
||||
<FormCollection
|
||||
title={t('collection.edit')}
|
||||
textSubmitButton={t('form.update')}
|
||||
canSubmit={canSubmit}
|
||||
|
||||
Reference in New Issue
Block a user