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

@@ -1,5 +1,5 @@
const PATHS = {
AUTHOR: 'https://www.sonny.dev/',
AUTHOR: 'https://www.sonny.dev/?utm_source=mylinks',
REPO_GITHUB: 'https://github.com/Sonny93/my-links',
EXTENSION:
'https://chromewebstore.google.com/detail/mylinks/agkmlplihacolkakgeccnbhphnepphma',

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,
});
}