2 Commits
3.3.0 ... 3.3.1

Author SHA1 Message Date
Sonny
70fc82dea8 chore: release v3.3.1 2025-11-09 03:24:03 +01:00
Sonny
3591d032c2 fix: broken imports 2025-11-09 03:23:53 +01:00
5 changed files with 11 additions and 8 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}

View File

@@ -1,6 +1,6 @@
{ {
"name": "my-links", "name": "my-links",
"version": "3.3.0", "version": "3.3.1",
"type": "module", "type": "module",
"license": "GPL-3.0-only", "license": "GPL-3.0-only",
"scripts": { "scripts": {