From 710e654756fb5cef0a246478c5e6b740e9fa281a Mon Sep 17 00:00:00 2001 From: Jennifer Alexander Date: Thu, 28 Sep 2023 15:27:47 -0500 Subject: [PATCH] Update styling to use sx props Use theme palette for white color instead of hard-coding --- .../SecurityAdminDashboard/SecurityTable.js | 36 ++++++------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/client/src/components/Account/SecurityAdminDashboard/SecurityTable.js b/client/src/components/Account/SecurityAdminDashboard/SecurityTable.js index 24565f852..008cd0507 100644 --- a/client/src/components/Account/SecurityAdminDashboard/SecurityTable.js +++ b/client/src/components/Account/SecurityAdminDashboard/SecurityTable.js @@ -1,6 +1,5 @@ import React from "react"; import PropTypes from "prop-types"; -import makeStyles from "@mui/styles/makeStyles"; import Table from "@mui/material/Table"; import TableBody from "@mui/material/TableBody"; import TableCell from "@mui/material/TableCell"; @@ -12,20 +11,7 @@ import Checkbox from "@mui/material/Checkbox"; import * as accountService from "../../../services/account-service"; import { useUserContext } from "../../../contexts/userContext"; -const useStyles = makeStyles({ - table: { - minWidth: 650, - }, - header: { - backgroundColor: "#000080", - }, - text: { - color: "#fff", - }, -}); - export default function SecurityTable(props) { - const classes = useStyles(); const { user } = useUserContext(); // arg `roleType` is expected to be one of: @@ -110,33 +96,33 @@ export default function SecurityTable(props) { return ( - - - - Email - +
+ + + ({color: theme.palette.common.white})}>Email + ({color: theme.palette.common.white})}> Name {user && user.isGlobalAdmin ? ( <> - + ({color: theme.palette.common.white})}> Root - + ({color: theme.palette.common.white})}> Reports ) : null} - + ({color: theme.palette.common.white})}> Admin - + ({color: theme.palette.common.white})}> Coordinator - + ({color: theme.palette.common.white})}> Security Admin - + ({color: theme.palette.common.white})}> Data Entry