From 23bbf428cfed3068a7cd452495da5a41f98b687f Mon Sep 17 00:00:00 2001 From: TZGyn Date: Thu, 17 Aug 2023 02:14:11 +0800 Subject: [PATCH] Removed link and description inputs from form --- components/bookmarkCard.tsx | 5 ++- components/editBookmarkForm.tsx | 63 +++++++++++++-------------------- components/newBookmarkForm.tsx | 55 +++++++++++++--------------- types/index.ts | 4 +-- 4 files changed, 53 insertions(+), 74 deletions(-) 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, - }) - }} - />