Skip to content

Commit a2adbe8

Browse files
committed
final version with delete function on august 12
1 parent 4d00632 commit a2adbe8

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ const Table3 = props => {
2323
const passedInProps = currentComponent.name !== 'App' ? currentComponent.passedInProps : '';
2424

2525
const columnTabs = [
26-
// {
27-
// field: 'id',
28-
// headerName: 'ID',
29-
// width: 30,
30-
// editable: false
31-
// },
26+
{
27+
field: 'id',
28+
headerName: 'ID',
29+
width: 30,
30+
editable: false
31+
},
3232
{
3333
field: 'key',
3434
headerName: 'Key',

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ const TableParentProps = props => {
2323
const parentPassedInProps = props.parentPassedInProps;
2424
const parentComponent = props.parentComponent;
2525
const columnTabs = [
26-
// {
27-
// field: 'id',
28-
// headerName: 'ID',
29-
// width: 30,
30-
// editable: false
31-
// },
26+
{
27+
field: 'id',
28+
headerName: 'ID',
29+
width: 30,
30+
editable: false
31+
},
3232
{
3333
field: 'key',
3434
headerName: 'Key',

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ const TableStateProps = props => {
2323

2424
// console.log({rows1})
2525
const columnTabs = [
26-
// {
27-
// field: 'id',
28-
// headerName: 'ID',
29-
// width: 30,
30-
// editable: false
31-
// },
26+
{
27+
field: 'id',
28+
headerName: 'ID',
29+
width: 30,
30+
editable: false
31+
},
3232
{
3333
field: 'key',
3434
headerName: 'Key',
@@ -75,12 +75,12 @@ const TableStateProps = props => {
7575
const filtered = currentComponent.stateProps.filter(
7676
element => element.id !== selectedId
7777
);
78-
const filteredChildren = currentComponent.children.passedInProps.filter(
79-
element => element.name !== stateName
80-
);
78+
// const filteredChildren = currentComponent.children.passedInProps.filter(
79+
// element => element.name !== stateName
80+
// );
8181
dispatch({
8282
type: 'DELETE STATE',
83-
payload: { stateProps: filtered, rowId: selectedId, passedInProps: filteredChildren }
83+
payload: { stateProps: filtered, rowId: selectedId}
8484
});
8585
};
8686

0 commit comments

Comments
 (0)