aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--backend/debug.txt1
-rw-r--r--src/pages/ManageAds.jsx2
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'}