From cad24e39f9e8b77f3c88cd316ea7f0963c339fcb Mon Sep 17 00:00:00 2001 From: Jennifer Alexander Date: Thu, 21 Sep 2023 11:03:32 -0500 Subject: [PATCH] Use sx props for styling --- .../SecurityAdminDashboard.js | 29 +++++++++---------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/client/src/components/Account/SecurityAdminDashboard/SecurityAdminDashboard.js b/client/src/components/Account/SecurityAdminDashboard/SecurityAdminDashboard.js index 103d0c26e..5c48791cf 100644 --- a/client/src/components/Account/SecurityAdminDashboard/SecurityAdminDashboard.js +++ b/client/src/components/Account/SecurityAdminDashboard/SecurityAdminDashboard.js @@ -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 { @@ -90,15 +77,25 @@ const SecurityAdminDashboard = () => { }; return ( - + Security Roles Grant or Revoke Permissions {error === "User does not Exist" ? ( @@ -115,4 +112,4 @@ const SecurityAdminDashboard = () => { ); }; -export default SecurityAdminDashboard; +export default SecurityAdminDashboard; \ No newline at end of file