Skip to content

Commit 6dafc2a

Browse files
committed
removed the column menu as mostly redudant as there is a sorting arrow
1 parent 29c8259 commit 6dafc2a

File tree

6 files changed

+9
-12
lines changed

6 files changed

+9
-12
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
22
import { useDispatch, useSelector } from 'react-redux';
33
import {
44
DataGrid,
5-
GridEditRowsModel,
5+
GridEditRowsModel
66
} from '@mui/x-data-grid';
77
import Button from '@mui/material/Button';
88
import makeStyles from '@mui/styles/makeStyles';
@@ -104,6 +104,7 @@ const TableParentProps = props => {
104104
}
105105
}
106106

107+
107108
return (
108109
<div className={'state-prop-grid'}>
109110
<DataGrid
@@ -113,6 +114,7 @@ const TableParentProps = props => {
113114
rowsPerPageOptions={[5]}
114115
editRowsModel={editRowsModel}
115116
className={props.isThemeLight ? classes.themeLight : classes.themeDark}
117+
disableColumnMenu={true}
116118
/>
117119
</div>
118120
);

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

Lines changed: 3 additions & 1 deletion
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';
@@ -96,6 +96,7 @@ const TablePassedInProps = props => {
9696
let rows: any = passedInProps?.slice();
9797
//let rows: readonly StateProp[] = passedInProps?.slice() || [];
9898

99+
99100
return (
100101
<div className={'state-prop-grid'}>
101102
<DataGrid
@@ -105,6 +106,7 @@ const TablePassedInProps = props => {
105106
rowsPerPageOptions={[5]}
106107
editRowsModel={editRowsModel}
107108
className={props.isThemeLight ? classes.themeLight : classes.themeDark}
109+
disableColumnMenu={true}
108110
/>
109111
</div>
110112
);

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ const TableStateProps = props => {
103103
let rows = [];
104104
currentComponent.stateProps?.forEach((prop) =>{ rows.push(prop)});
105105

106-
107-
108106
return (
109107
<div className={'state-prop-grid'}>
110108
<DataGrid
@@ -115,7 +113,7 @@ const TableStateProps = props => {
115113
editRowsModel={editRowsModel}
116114
onRowClick={selectHandler}
117115
className={props.isThemeLight ? classes.themeLight : classes.themeDark}
118-
disableColumnMenu={false}
116+
disableColumnMenu={true}
119117
/>
120118
</div>
121119
);

app/src/components/bottom/BottomPanel.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ const BottomPanel = (props): JSX.Element => {
2525
const newVal = h + dy;
2626
const styles = window.getComputedStyle(node.current);
2727
const min = parseInt(styles.minHeight, 10);
28-
console.log('is newVal > min newVal', newVal)
29-
console.log('is newVal > min min', min)
3028
node.current.style.height = newVal > min ? `${h + dy}px` : `${min}px`;
31-
console.log('mousemove', node.current.style.height)
3229
};
3330

3431
const mouseUpHandler = function () {

app/src/components/bottom/BottomTabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const BottomTabs = (props): JSX.Element => {
5050
<div
5151
className={`${classes.root} ${classes.rootLight}`}
5252
style={{ backgroundColor: '#191919' , zIndex: 1, borderTop: '2px solid grey'}}
53-
onMouseOver={()=>{console.log('mouse over'); props.setBottomShow(true)}}
53+
onMouseOver={()=>{props.setBottomShow(true)}}
5454
>
5555
<Box
5656
display="flex"

app/src/containers/MainContainer.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ const MainContainer = (props): JSX.Element => {
7171
const bottomPanelRef = useRef(null);
7272

7373
useEffect(() => {
74-
const handleClick = (event) => {
75-
console.log(event.target)
76-
74+
const handleClick = (event) => {
7775
if (event.type === "click" &&
7876
(bottomPanelRef.current &&
7977
!bottomPanelRef.current.contains(event.target) && event.target.getAttribute("role") != "menu" && !event.target.classList.contains('MuiInput-input')) || (event.type === "message" && event.data === 'iframeClicked')) {

0 commit comments

Comments
 (0)