From bd933a5aace3ac4944bfe7f4b58b4908978b4950 Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Thu, 1 Aug 2024 17:49:26 +0530 Subject: merge --- src/components/AdCard.jsx | 13 --------- src/components/AdForm.jsx | 40 -------------------------- src/components/Navbar.jsx | 14 --------- src/components/UploadForm.jsx | 42 --------------------------- src/components/ViewAds.css | 21 -------------- src/components/ViewAds.jsx | 67 ------------------------------------------- 6 files changed, 197 deletions(-) delete mode 100644 src/components/AdCard.jsx delete mode 100644 src/components/AdForm.jsx delete mode 100644 src/components/Navbar.jsx delete mode 100644 src/components/UploadForm.jsx delete mode 100644 src/components/ViewAds.css delete mode 100644 src/components/ViewAds.jsx (limited to 'src/components') diff --git a/src/components/AdCard.jsx b/src/components/AdCard.jsx deleted file mode 100644 index 6e854ed..0000000 --- a/src/components/AdCard.jsx +++ /dev/null @@ -1,13 +0,0 @@ -import React from 'react'; - -const AdCard = ({ ad }) => { - return ( -
-

{ad.title}

-

{ad.description}

- {ad.title} -
- ); -}; - -export default AdCard; diff --git a/src/components/AdForm.jsx b/src/components/AdForm.jsx deleted file mode 100644 index 3274803..0000000 --- a/src/components/AdForm.jsx +++ /dev/null @@ -1,40 +0,0 @@ -import React, { useState } from 'react'; - -const AdForm = ({ onAddAd }) => { - const [title, setTitle] = useState(''); - const [description, setDescription] = useState(''); - const [image, setImage] = useState(''); - - const handleSubmit = (e) => { - e.preventDefault(); - onAddAd({ title, description, image }); - setTitle(''); - setDescription(''); - setImage(''); - }; - - return ( -
- setTitle(e.target.value)} - /> -