diff --git a/components/bookmarkCard.tsx b/components/bookmarkCard.tsx
index 4716ea1..a6f1b5a 100644
--- a/components/bookmarkCard.tsx
+++ b/components/bookmarkCard.tsx
@@ -1,8 +1,7 @@
'use client'
-import { Card, CardHeader, CardBody, CardFooter } from '@nextui-org/card'
+import { Card, CardHeader } from '@nextui-org/card'
import { Link } from '@nextui-org/link'
-import { Divider } from '@nextui-org/divider'
import { Image } from '@nextui-org/image'
import { Icon } from '@iconify/react'
import { Button } from '@nextui-org/button'
@@ -53,7 +52,7 @@ export const BookmarkCard = ({ data }: { data: Bookmark }) => {
className='flex grow flex-col items-start'>
{data.name}
- {data.link}
+ {data.url}
diff --git a/components/editBookmarkForm.tsx b/components/editBookmarkForm.tsx
index d497c9c..83d4eba 100644
--- a/components/editBookmarkForm.tsx
+++ b/components/editBookmarkForm.tsx
@@ -66,46 +66,14 @@ export default function EditBookmarkForm() {
/>
- {
- setBookmark({
- ...bookmark,
- name: event.target.value,
- })
- }}
- />
- {
- setBookmark({
- ...bookmark,
- link: event.target.value,
- })
- }}
- />
- {
- setBookmark({
- ...bookmark,
- description: event.target.value,
- })
- }}
- />
+ {
+ setBookmark({
+ ...bookmark,
+ name: event.target.value,
+ })
+ }}
+ />
{
@@ -81,37 +81,14 @@ export default function NewBookmarkForm() {
/>
- {
- setName(event.target.value)
- }}
- />
- {
- setLink(event.target.value)
- }}
- />
- {
- setDescription(event.target.value)
- }}
- />
-
+
+ {
+ setName(event.target.value)
+ }}
+ />
& {
const bookmark = {
name: z.string().nonempty(),
- link: z.string().nonempty(),
- description: z.string().nonempty(),
+ link: z.string(),
+ description: z.string(),
url: z.string().url().nonempty(),
category_id: z.number(),
}