Skip to content

Commit

Permalink
Tablecomponent moved to MF
Browse files Browse the repository at this point in the history
  • Loading branch information
fahad-aot committed Oct 30, 2024
1 parent f64af69 commit 572f6c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 149 deletions.
137 changes: 0 additions & 137 deletions forms-flow-web/src/components/CustomComponents/TableComponents.js

This file was deleted.

8 changes: 2 additions & 6 deletions forms-flow-web/src/components/Modeler/DecisionTable.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import React, { useState, useEffect } from "react";
import { useSelector, useDispatch } from "react-redux";
import { CustomButton, CustomSearch } from "@formsflow/components";
import { CustomButton, CustomSearch ,ReusableProcessTableRow ,TableFooter} from "@formsflow/components";
import LoadingOverlay from "react-loading-overlay-ts";
import { useTranslation } from "react-i18next";
import SortableHeader from "../CustomComponents/SortableHeader";
import {
ReusableTableRow,
TableFooter,
} from "../CustomComponents/TableComponents";
import { fetchAllProcesses } from "../../apiManager/services/processServices";
import { MULTITENANCY_ENABLED } from "../../constants/constants";
import { push } from "connected-react-router";
Expand Down Expand Up @@ -169,7 +165,7 @@ const DecisionTable = React.memo(() => {
</thead>
<tbody>
{dmn.map((dmnItem) => (
<ReusableTableRow
<ReusableProcessTableRow
key={dmnItem.id}
item={dmnItem}
gotoEdit={gotoEdit}
Expand Down
9 changes: 3 additions & 6 deletions forms-flow-web/src/components/Modeler/SubFlowTable.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react";
import { CustomButton, CustomSearch } from "@formsflow/components";
import { CustomButton, CustomSearch ,TableFooter ,ReusableProcessTableRow} from "@formsflow/components";
import { useSelector, useDispatch } from "react-redux";
import { useTranslation } from "react-i18next";

Expand All @@ -12,10 +12,7 @@ import {
import { push } from "connected-react-router";
import { MULTITENANCY_ENABLED } from "../../constants/constants";
import SortableHeader from "../CustomComponents/SortableHeader";
import {
ReusableTableRow,
TableFooter,
} from "../CustomComponents/TableComponents";


const SubFlow = React.memo(() => {
const searchText = useSelector((state) => state.process.bpmnSearchText);
Expand Down Expand Up @@ -185,7 +182,7 @@ const SubFlow = React.memo(() => {
</thead>
<tbody>
{process.map((processItem) => (
<ReusableTableRow
<ReusableProcessTableRow
key={processItem.id}
item={processItem}
gotoEdit={gotoEdit}
Expand Down

0 comments on commit 572f6c5

Please sign in to comment.