Skip to content

Commit 2557dee

Browse files
committed
resolved MUI no rowsPerPageOptions warning in context manager
1 parent fa17240 commit 2557dee

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ const StatePropsPanel = ({ isThemeLight, data }): JSX.Element => {
218218
>
219219
<InputLabel
220220
id="select-required-label"
221-
style={{color: 'black'}}
221+
style={{color: 'white'}}
222222
>
223223
Type
224224
</InputLabel>
@@ -235,7 +235,16 @@ const StatePropsPanel = ({ isThemeLight, data }): JSX.Element => {
235235
onChange={(event) => setInputType(event.target.value)}
236236
MenuProps={{ disablePortal: true }}
237237
style={
238-
isThemeLight
238+
{
239+
backgroundColor: 'gray',
240+
color: '#fff',
241+
border: '1px solid white',
242+
height: '28px',
243+
width: '200px'
244+
}
245+
}
246+
>{/*originally in style:
247+
isThemeLight
239248
? {
240249
backgroundColor: '#eef0f1',
241250
color: '#000',
@@ -249,9 +258,7 @@ const StatePropsPanel = ({ isThemeLight, data }): JSX.Element => {
249258
border: '1px solid white',
250259
height: '28px',
251260
width: '200px'
252-
}
253-
}
254-
>
261+
}*/}
255262
<MenuItem value="" style={{ color: 'black' }}>
256263
<em>Types</em>
257264
</MenuItem>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ const TableParentProps = props => {
110110
rows={rows}
111111
columns={gridColumns}
112112
pageSize={5}
113+
rowsPerPageOptions={[5]}
113114
editRowsModel={editRowsModel}
114115
className={props.isThemeLight ? classes.themeLight : classes.themeDark}
115116
/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ const TablePassedInProps = props => {
102102
rows={rows}
103103
columns={gridColumns}
104104
pageSize={5}
105+
rowsPerPageOptions={[5]}
105106
editRowsModel={editRowsModel}
106107
className={props.isThemeLight ? classes.themeLight : classes.themeDark}
107108
/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ const TableStateProps = props => {
105105
rows={rows}
106106
columns={gridColumns}
107107
pageSize={5}
108+
rowsPerPageOptions={[5]}
108109
editRowsModel={editRowsModel}
109110
onRowClick={selectHandler}
110111
className={props.isThemeLight ? classes.themeLight : classes.themeDark}

0 commit comments

Comments
 (0)