Skip to content

Commit

Permalink
Create redesigned Users page with two buttons link to users-search an…
Browse files Browse the repository at this point in the history
…d users-permission-search
  • Loading branch information
vorleakyek committed Oct 30, 2024
1 parent 7c842cc commit 7d5bfe9
Show file tree
Hide file tree
Showing 6 changed files with 5,862 additions and 650 deletions.
2 changes: 1 addition & 1 deletion client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const routes = [
{ path: '/events', name: 'events', Component: Events },
{ path: '/users', name: 'users', Component: Users },

{ path: '/useradmin', name: 'useradmin', Component: UserAdmin },
{ path: '/users/user-search', name: 'useradmin', Component: UserAdmin },
{ path: '/projects', name: 'projects', Component: ProjectList },
{ path: '/projects/create', name: 'projectform', Component: addProject },
{
Expand Down
3 changes: 0 additions & 3 deletions client/src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ const Navbar = (props) => {
<StyledButton component={NavLink} to="/users">
USERS
</StyledButton>
<StyledButton component={NavLink} to="/useradmin">
NewUSERS
</StyledButton>
<StyledButton component={NavLink} to="/projects">
PROJECTS
</StyledButton>
Expand Down
13 changes: 10 additions & 3 deletions client/src/pages/Users.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import React, { useState } from 'react';
import { Link } from 'react-router-dom';
import { Button } from '@mui/material';

import '../sass/Users.scss';
Expand All @@ -8,15 +9,21 @@ const Users = () => {
<div className="container--users">
<div className="margin-bottom">
<Button
component={Link}
to="/users/user-search"
className="button"
variant="contained"
onClick={() => console.log('clicked')}
>
User Search
</Button>
</div>
<div>
<Button className="button" variant="contained">
<Button
component={Link}
to="/users/permission-search"
className="button"
variant="contained"
>
User Permission Search
</Button>
</div>
Expand Down
Loading

0 comments on commit 7d5bfe9

Please sign in to comment.