Skip to content

Commit 6ba8652

Browse files
authored
Merge pull request #29 from oslabs-beta/RachStateModalDebug
Debugged State Management UI
2 parents 1faaba8 + b7d17fa commit 6ba8652

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

app/src/components/StateManagement/CreateTab/components/TableParentProps.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ const TableParentProps = props => {
121121
const useStyles = makeStyles({
122122
themeLight: {
123123
color: 'rgba(0,0,0,0.54)',
124+
'& button:hover':{
125+
backgroundColor: 'LightGray'
126+
},
127+
'& button':{
128+
color: 'black'
129+
},
124130
'& .MuiTablePagination-root': {
125131
color: 'rbga(0,0,0,0.54)'
126132
}

app/src/components/StateManagement/CreateTab/components/TablePassedInProps.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ const TablePassedInProps = props => {
112112
const useStyles = makeStyles({
113113
themeLight: {
114114
color: 'rgba(0,0,0,0.54)',
115+
'& button:hover':{
116+
backgroundColor: 'LightGray'
117+
},
118+
'& button':{
119+
color: 'black'
120+
},
115121
'& .MuiTablePagination-root': {
116122
color: 'rbga(0,0,0,0.54)'
117123
}

app/src/components/StateManagement/CreateTab/components/TableStateProps.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState, useEffect } from 'react';
22
import {
33
DataGrid,
4-
GridEditRowsModel,
4+
GridEditRowsModel
55
} from '@mui/x-data-grid';
66
import Button from '@mui/material/Button';
77
import ClearIcon from '@mui/icons-material/Clear';
@@ -109,6 +109,7 @@ const TableStateProps = props => {
109109
editRowsModel={editRowsModel}
110110
onRowClick={selectHandler}
111111
className={props.isThemeLight ? classes.themeLight : classes.themeDark}
112+
disableColumnMenu={false}
112113
/>
113114
</div>
114115
);
@@ -117,8 +118,11 @@ const TableStateProps = props => {
117118
const useStyles = makeStyles({
118119
themeLight: {
119120
color: 'rgba(0,0,0,0.54)',
120-
'& .MuiTablePagination-root': {
121-
color: 'rbga(0,0,0,0.54)'
121+
'& button:hover':{
122+
backgroundColor: 'LightGray'
123+
},
124+
'& button':{
125+
color: 'black'
122126
}
123127
},
124128
themeDark: {

app/src/components/StateManagement/StateManagement.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const StateManager = (props): JSX.Element => {
3737
// then this will re-render the dataTable
3838

3939
const background_Color = isDarkMode ? '#21262b' : 'white';
40+
const color = isDarkMode ? 'white' : 'black';
4041

4142
return (
4243
<React.Fragment>

app/src/public/styles/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,3 +747,7 @@ a.nav_link:hover {
747747
align-items: center;
748748
}
749749

750+
li {
751+
color: black !important;
752+
}
753+

0 commit comments

Comments
 (0)