Skip to content

Commit

Permalink
Linked "Add Product" button (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwm516 authored Apr 19, 2024
1 parent 4008dac commit c8e102b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/admin-page/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ const Admin = () => {
<div>
<h1> Wellcome to the PAGE </h1>
<p>FIX: allow only users with admin role to be routed to this page</p>
{/* <Link to="/add-product-page"> */}
<a href="/add-product-page">
<button style={{ backgroundColor: 'green', color: 'white', padding: '10px 20px', marginTop: '20px' }}>
Add Product
</button>
{/* </Link> */}
{/* <Link to="/add-product-page"> */}
</a>
{/* <a href="/add-product-page"> */}
<button style={{ backgroundColor: 'green', color: 'white', padding: '10px 20px', marginTop: '20px' }}>
All Products
</button>
Expand Down

0 comments on commit c8e102b

Please sign in to comment.