diff options
author | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-07-27 20:51:02 +0530 |
---|---|---|
committer | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-07-27 20:51:02 +0530 |
commit | fd87e69fd6972fc3f6adea5fbfbd5e4944cf4a9e (patch) | |
tree | 914019c277dbc3ff6be407750ab90a676d15e70b | |
parent | faa14c5db0cde222685014cb58f851ae443427c2 (diff) | |
download | admin-panel-fd87e69fd6972fc3f6adea5fbfbd5e4944cf4a9e.tar.gz admin-panel-fd87e69fd6972fc3f6adea5fbfbd5e4944cf4a9e.tar.bz2 admin-panel-fd87e69fd6972fc3f6adea5fbfbd5e4944cf4a9e.zip |
remove the AdForm
-rw-r--r-- | backend/debug.txt | 1 | ||||
-rw-r--r-- | src/pages/ManageAds.jsx | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/backend/debug.txt b/backend/debug.txt new file mode 100644 index 0000000..ccf4afc --- /dev/null +++ b/backend/debug.txt @@ -0,0 +1 @@ +Server running on http://localhost:5000 diff --git a/src/pages/ManageAds.jsx b/src/pages/ManageAds.jsx index 8f72d0f..cceca06 100644 --- a/src/pages/ManageAds.jsx +++ b/src/pages/ManageAds.jsx @@ -1,6 +1,5 @@ import React, { useState, useEffect } from 'react'; import AdCard from '../components/AdCard'; -import AdForm from '../components/AdForm'; import UploadForm from '../components/UploadForm'; import ViewAds from '../components/ViewAds'; import { fetchAds, addAd } from '../utils/api'; @@ -34,7 +33,6 @@ const ManageAds = () => { return ( <div> <h1>Manage Ads</h1> - <AdForm onAddAd={handleAddAd} /> <UploadForm onUploadComplete={handleUploadComplete} /> <button onClick={toggleViewAds}> {showUploadedAds ? 'Hide Uploaded Ads' : 'View Uploaded Ads'} |