feat: add a search modal using the database (wip)

This commit is contained in:
Sonny
2024-05-25 03:40:08 +02:00
committed by Sonny
parent b28499a69a
commit 56c05f1bf6
21 changed files with 535 additions and 621 deletions

View File

@@ -13,7 +13,8 @@ export default function CreateLinkPage({
collections: Collection[];
}) {
const { t } = useTranslation('common');
const collectionId = useSearchParam('collectionId') ?? collections[0].id;
const collectionId =
Number(useSearchParam('collectionId')) ?? collections[0].id;
const { data, setData, submit, processing } = useForm({
name: '',
description: '',