Commit af423aa5 authored by Dida Adams Arizona's avatar Dida Adams Arizona

Merge branch 'faisal' into 'master'

create/update perusahaan

See merge request !45
parents b201a5e5 81ebde6b
This diff is collapsed.
...@@ -6,6 +6,7 @@ import Images from '../../../assets/Images'; ...@@ -6,6 +6,7 @@ import Images from '../../../assets/Images';
import MUIDataTable from "mui-datatables"; import MUIDataTable from "mui-datatables";
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import { TextField, InputBase } from "@material-ui/core"; import { TextField, InputBase } from "@material-ui/core";
import CreatePerusahaan from "../Perusahaan/CreatePerusahaan";
var ct = require("../../../library/CustomTable"); var ct = require("../../../library/CustomTable");
const getMuiTheme = () => createMuiTheme(ct.customTable()); const getMuiTheme = () => createMuiTheme(ct.customTable());
...@@ -70,7 +71,7 @@ export default class Perusahaan extends Component { ...@@ -70,7 +71,7 @@ export default class Perusahaan extends Component {
} }
} }
}, { }, {
name: "Nama Perusahaan", name: "Parent Company",
options: { options: {
customBodyRender: (val, tableMeta) => { customBodyRender: (val, tableMeta) => {
return ( return (
...@@ -163,6 +164,19 @@ export default class Perusahaan extends Component { ...@@ -163,6 +164,19 @@ export default class Perusahaan extends Component {
</div> </div>
</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> </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