Skip to content

Commit e534402

Browse files
MVP DONE
1 parent 4019a3a commit e534402

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import StateContext from "../../../../context/context";
99
import { makeStyles } from '@material-ui/core/styles';
1010
import { StatePropsPanelProps } from '../../../../interfaces/Interfaces';
1111
import AddIcon from '@mui/icons-material/Add';
12+
import { borderLeft } from '@mui/system';
1213

1314
const Table3 = props => {
1415
// console.log('props from table state props', props)
@@ -25,7 +26,7 @@ const Table3 = props => {
2526
{
2627
field: 'id',
2728
headerName: 'ID',
28-
width: 70,
29+
width: 30,
2930
editable: false
3031
},
3132
{
@@ -49,8 +50,9 @@ const Table3 = props => {
4950
{
5051
field: 'delete',
5152
headerName: 'X',
52-
width: 70,
53+
width: 30,
5354
editable: false,
55+
align: 'left',
5456
renderCell: function renderCell(params: any) {
5557
return (
5658
<Button

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const TableParentProps = props => {
2323
{
2424
field: 'id',
2525
headerName: 'ID',
26-
width: 70,
26+
width: 30,
2727
editable: false
2828
},
2929
{
@@ -47,7 +47,7 @@ const TableParentProps = props => {
4747
{
4848
field: 'delete',
4949
headerName: '+',
50-
width: 90,
50+
width: 30,
5151
editable: false,
5252
renderCell: function renderCell(params: any) {
5353
return (

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const TableStateProps = props => {
2626
{
2727
field: 'id',
2828
headerName: 'ID',
29-
width: 70,
29+
width: 30,
3030
editable: false
3131
},
3232
{
@@ -50,7 +50,7 @@ const TableStateProps = props => {
5050
{
5151
field: 'delete',
5252
headerName: 'X',
53-
width: 90,
53+
width: 30,
5454
editable: false,
5555
renderCell: function renderCell(params: any) {
5656
return (

app/src/components/main/DirectChildComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function DirectChildComponent({ childId, type, typeId, style, name }: ChildEleme
5454
const combinedStyle = combineStyles(
5555
combineStyles(
5656
combineStyles(globalDefaultStyle, referencedComponent.style),
57-
style
57+
// style
5858
),
5959
interactiveStyle
6060
);

app/src/reducers/componentReducer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ const reducer = (state: State, action: Action) => {
803803
// const toDelete = currComponent.passedInProps[action.payload.rowId]
804804
// console.log('in delete reducer toDelete', {toDelete})
805805
let index;
806-
for (let i = 0; i < currComponent.passedInProps.length - 1 ; i++) {
806+
for (let i = 0; i < currComponent.passedInProps.length; i++) {
807807
if (currComponent.passedInProps[i].id === action.payload.rowId) {
808808
index = i;
809809
break;

0 commit comments

Comments
 (0)