Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IkkiOcean committed Nov 9, 2024
1 parent db481a1 commit 9893538
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
7 changes: 2 additions & 5 deletions frontend/src/AgroShopAI/components/Pages/SellerDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import SellerProductManagementPage from "./components/SellerProductManagementPag
import SellerOrderManagementPage from "./components/SellerOrderManagementPage";
import SellerAnalyticsPage from "./components/SellerAnalyticsPage";
import SellerSettingsPage from "./components/SellerSettingsPage";
import ProductEntry from "./components/productEntry";

export default function SellerAccountPage() {
const [activeTab, setActiveTab] = useState("dashboard");
const [products, setProducts] = useState(initialProducts);
Expand Down Expand Up @@ -63,10 +63,7 @@ export default function SellerAccountPage() {
<SellerOrderManagementPage orders={orders} />
)}
{activeTab === "analytics" && <SellerAnalyticsPage />}
{activeTab === "add" && (
<ProductEntry/>

)}

{activeTab === "settings" && (
<SellerSettingsPage initialSellerData={sellerInfo} />
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ const Nav = ({ activeTab, setActiveTab }) => {
Analytics
</button>
</li>
<li>
<button onClick={() => setActiveTab('add')} className={activeTab === 'add' ? 'font-bold' : ''}>
Add Product
</button>
</li>

<li>
<button onClick={() => setActiveTab('settings')} className={activeTab === 'settings' ? 'font-bold' : ''}>
Settings
Expand Down

0 comments on commit 9893538

Please sign in to comment.