Skip to content

Commit

Permalink
Update div to box
Browse files Browse the repository at this point in the history
  • Loading branch information
vorleakyek committed Oct 31, 2024
1 parent 29f1c9b commit abdc330
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
14 changes: 7 additions & 7 deletions client/src/pages/Users.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React, { useState } from 'react';
import { Link } from 'react-router-dom';
import { Button } from '@mui/material';
import { Button, Box, Container } from '@mui/material';

import '../sass/Users.scss';

const Users = () => {
return (
<div className="container--users">
<div className="margin-bottom">
<Container className="container--users">
<Box className="margin-bottom center">
<Button
component={Link}
to="/users/user-search"
Expand All @@ -16,8 +16,8 @@ const Users = () => {
>
User Search
</Button>
</div>
<div>
</Box>
<Box className="center">
<Button
component={Link}
to="/users/permission-search"
Expand All @@ -26,8 +26,8 @@ const Users = () => {
>
User Permission Search
</Button>
</div>
</div>
</Box>
</Container>
);
};

Expand Down
5 changes: 5 additions & 0 deletions client/src/sass/Users.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
margin-top: 50px;
}

.center {
display: flex;
justify-content: center;
}

.button {
width: 250px;
border-radius: 8px;
Expand Down

0 comments on commit abdc330

Please sign in to comment.