feat: recreate form collection (layout + create)

This commit is contained in:
Sonny
2024-11-01 17:42:40 +01:00
committed by Sonny
parent 1a102ebc5f
commit e77b7cc176
9 changed files with 292 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ export default class CollectionsController {
// Create collection form
async showCreatePage({ inertia, auth }: HttpContext) {
const collections = await this.getCollectionsByAuthorId(auth.user!.id);
return inertia.render('collections/create', {
return inertia.render('mantine/collections/create', {
disableHomeLink: collections.length === 0,
});
}