Skip to content

Commit

Permalink
"Edit User Role" button and page styling (#293) (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwm516 authored Apr 22, 2024
1 parent b31fb17 commit 012fd51
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions app/admin-page/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,32 @@ const Admin = () => {

return (
<div>
<h1> Wellcome to the PAGE </h1>
<h1> Welcome to the PAGE </h1>
<p>FIX: allow only users with admin role to be routed to this page</p>

{/* Changed button styling to match with Creator page's buttons */}

<a href="/add-product-page">
<button style={{ backgroundColor: 'green', color: 'white', padding: '10px 20px', marginTop: '20px' }}>
{/* <button style={{ backgroundColor: 'green', color: 'white', padding: '10px 20px', marginTop: '20px' }}> */}
<button>
Add Product
</button>
</a>
{/* <a href="/add-product-page"> */}
<button style={{ backgroundColor: 'green', color: 'white', padding: '10px 20px', marginTop: '20px' }}>

{/* <Link to="/add-product-page"> */}
{/* <button style={{ backgroundColor: 'green', color: 'white', padding: '10px 20px', marginTop: '20px' }}> */}
<button>
All Products
</button>
{/* </Link> */}
{/* <Link to="/add-product-page"> */}
<button style={{ backgroundColor: 'green', color: 'white', padding: '10px 20px', marginTop: '20px' }}>
{/* </Link> */}

<a href="/edit-user-role-page">
{/* <button style={{ backgroundColor: 'green', color: 'white', padding: '10px 20px', marginTop: '20px' }}> */}
<button>
Edit User Roles
</button>
{/* </Link> */}
</a>

</div>
);
};
Expand Down

0 comments on commit 012fd51

Please sign in to comment.