refactor: remove all legacy files

+ comment/delete things that haven't yet migrated to mantine
This commit is contained in:
Sonny
2024-11-07 00:29:58 +01:00
committed by Sonny
parent 861906d29b
commit 5c37fe9c31
148 changed files with 469 additions and 4728 deletions

View File

@@ -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 FormLink from '~/components/form/form_link';
import MantineFormLink from '~/components/form/form_link';
import useSearchParam from '~/hooks/use_search_param';
import { isValidHttpUrl } from '~/lib/navigation';
import { Collection } from '~/types/app';
@@ -38,8 +38,9 @@ export default function CreateLinkPage({
};
return (
<FormLink
<MantineFormLink
title={t('link.create')}
textSubmitButton={t('form.create')}
canSubmit={canSubmit}
data={data}
setData={setData}

View File

@@ -1,7 +1,7 @@
import { useForm } from '@inertiajs/react';
import { route } from '@izzyjs/route/client';
import { useTranslation } from 'react-i18next';
import FormLink from '~/components/form/form_link';
import MantineFormLink from '~/components/form/form_link';
import { LinkWithCollection } from '~/types/app';
export default function DeleteLinkPage({ link }: { link: LinkWithCollection }) {
@@ -22,8 +22,9 @@ export default function DeleteLinkPage({ link }: { link: LinkWithCollection }) {
};
return (
<FormLink
<MantineFormLink
title={t('link.delete')}
textSubmitButton={t('form.delete')}
canSubmit={!processing}
data={data}
setData={setData}

View File

@@ -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 FormLink from '~/components/form/form_link';
import MantineFormLink from '~/components/form/form_link';
import { isValidHttpUrl } from '~/lib/navigation';
import { Collection, Link } from '~/types/app';
@@ -46,8 +46,9 @@ export default function EditLinkPage({
};
return (
<FormLink
<MantineFormLink
title={t('link.edit')}
textSubmitButton={t('form.update')}
canSubmit={canSubmit}
data={data}
setData={setData}