mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 07:25:35 +00:00
refactor: remove all legacy files
+ comment/delete things that haven't yet migrated to mantine
This commit is contained in:
@@ -3,7 +3,7 @@ import { useForm } from '@inertiajs/react';
|
||||
import { route } from '@izzyjs/route/client';
|
||||
import { useMemo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import FormCollection, {
|
||||
import MantineFormCollection, {
|
||||
FormCollectionData,
|
||||
} from '~/components/form/form_collection';
|
||||
|
||||
@@ -29,8 +29,9 @@ export default function CreateCollectionPage({
|
||||
};
|
||||
|
||||
return (
|
||||
<FormCollection
|
||||
<MantineFormCollection
|
||||
title={t('collection.create')}
|
||||
textSubmitButton={t('form.create')}
|
||||
canSubmit={!isFormDisabled}
|
||||
disableHomeLink={disableHomeLink}
|
||||
data={data}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useForm } from '@inertiajs/react';
|
||||
import { route } from '@izzyjs/route/client';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import FormCollection, {
|
||||
import MantineFormCollection, {
|
||||
FormCollectionData,
|
||||
} from '~/components/form/form_collection';
|
||||
import { Collection } from '~/types/app';
|
||||
@@ -27,8 +27,9 @@ export default function DeleteCollectionPage({
|
||||
};
|
||||
|
||||
return (
|
||||
<FormCollection
|
||||
<MantineFormCollection
|
||||
title={t('collection.delete')}
|
||||
textSubmitButton={t('form.delete')}
|
||||
canSubmit={!processing}
|
||||
data={data}
|
||||
setData={setData}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { useForm } from '@inertiajs/react';
|
||||
import { route } from '@izzyjs/route/client';
|
||||
import { useMemo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import FormCollection, {
|
||||
import MantineFormCollection, {
|
||||
FormCollectionData,
|
||||
} from '~/components/form/form_collection';
|
||||
import { Collection } from '~/types/app';
|
||||
@@ -37,8 +37,9 @@ export default function EditCollectionPage({
|
||||
};
|
||||
|
||||
return (
|
||||
<FormCollection
|
||||
<MantineFormCollection
|
||||
title={t('collection.edit')}
|
||||
textSubmitButton={t('form.update')}
|
||||
canSubmit={canSubmit}
|
||||
data={data}
|
||||
setData={setData}
|
||||
|
||||
Reference in New Issue
Block a user