Skip to content

Commit

Permalink
Update admin page with button and links (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
Asfand00 authored Jul 15, 2024
1 parent ed52f05 commit 8ac8c0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion app/admin-page/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ const Admin = () => {
Add Product
</Button>

<Button href="/">
<Button href="/category-page/all-products">
All Products
</Button>

<Button href="/edit-user-role-page">
Edit User Roles
</Button>

<Button href="/archived-products-page">
Archived Products
</Button>

</ButtonGroup>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'
import Admin from '../app/admin-page/page';


import Admin from '../../../app/admin-page/page';

describe('Admin', () => {
it('renders the buttons', () => {
Expand Down

0 comments on commit 8ac8c0f

Please sign in to comment.