Commit 267d4bef authored by faisalhamdi's avatar faisalhamdi

add create/update perusahaan

parent 61836872
This diff is collapsed.
......@@ -6,6 +6,7 @@ import Images from '../../../assets/Images';
import MUIDataTable from "mui-datatables";
import { render } from '@testing-library/react';
import { TextField, InputBase } from "@material-ui/core";
import CreatePerusahaan from "../Perusahaan/CreatePerusahaan";
var ct = require("../../../library/CustomTable");
const getMuiTheme = () => createMuiTheme(ct.customTable());
......@@ -70,7 +71,7 @@ export default class Perusahaan extends Component {
}
}
}, {
name: "Nama Perusahaan",
name: "Parent Company",
options: {
customBodyRender: (val, tableMeta) => {
return (
......@@ -163,6 +164,19 @@ export default class Perusahaan extends Component {
</div>
</div>
{this.state.visibleCreate && (
<CreatePerusahaan
onClickClose={() => this.setState({ visibleCreate: false })}
/>
)}
{this.state.visibleEdit && (
<CreatePerusahaan
type={"edit"}
onClickClose={() => this.setState({ visibleEdit: false })}
data={this.state.data}
/>
)}
</div>
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment