fix: broken imports

This commit is contained in:
Sonny
2025-11-09 03:23:53 +01:00
parent e4aea038fe
commit 3591d032c2
4 changed files with 10 additions and 7 deletions

View File

@@ -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,

View File

@@ -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}

View File

@@ -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}

View File

@@ -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}