Skip to content

Commit

Permalink
Merge pull request #1816 from hackforla/1759-update-styling
Browse files Browse the repository at this point in the history
Use sx props for styling
  • Loading branch information
jenny-alexander authored Sep 26, 2023
2 parents d9a5bec + cad24e3 commit 75e0268
Showing 1 changed file with 13 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,17 @@
import React, { useState, useEffect, useMemo } from "react";
import SecurityTable from "./SecurityTable";
import { makeStyles } from "@mui/styles";
import Typography from "@mui/material/Typography";
import Container from "@mui/material/Container";
import TextField from "@mui/material/TextField";
import * as accountService from "../../../services/account-service";
import debounce from "lodash.debounce";

const useStyles = makeStyles({
root: {
textAlign: "center",
padding: "2rem",
},
textInput: {
marginBottom: 10,
},
});

const SecurityAdminDashboard = () => {
const [accounts, setAccounts] = useState([]);
const [filteredAccounts, setFilteredAccounts] = useState([]);
const [search, setSearch] = useState("");
const [error, setError] = useState("");

const classes = useStyles();

useEffect(() => {
const fetchData = async () => {
try {
Expand Down Expand Up @@ -90,15 +77,25 @@ const SecurityAdminDashboard = () => {
};

return (
<Container maxWidth="lg" className={classes.root}>
<Container
maxWidth="lg"
sx={{
"&.MuiContainer-root": {
textAlign: "center",
padding: "2rem",
}
}}
>
<Typography variant="h4">Security Roles</Typography>
<Typography variant="h6">Grant or Revoke Permissions</Typography>
<TextField
sx={{
marginBottom: "10px",
}}
variant="outlined"
margin="none"
placeholder="Find"
size="small"
className={classes.textInput}
onChange={debouncedChangeHandler}
/>
{error === "User does not Exist" ? (
Expand All @@ -115,4 +112,4 @@ const SecurityAdminDashboard = () => {
);
};

export default SecurityAdminDashboard;
export default SecurityAdminDashboard;

0 comments on commit 75e0268

Please sign in to comment.