Commit 2570195c authored by EKSAD's avatar EKSAD

update edit item laporan

parent 7da0e2e3
......@@ -7,6 +7,7 @@ import MUIDataTable from "mui-datatables";
import { TextField, InputBase } from "@material-ui/core";
import { ExcelRenderer } from 'react-excel-renderer';
import CreateItemLaporan from "./formItemLaporan/CreateItemLaporan";
import EditItemLaporan from "./formItemLaporan/EditItemLaporan";
var ct = require("../../library/CustomTable");
const getMuiTheme = () => createMuiTheme(ct.customTable());
......@@ -46,7 +47,7 @@ export default class ItemLaporan extends Component {
cursor: 'pointer',
borderColor: 'transparent'
}}
onClick={() => null}
onClick={() => this.setState({ edit: true })}
>
<img src={Images.editCopy} />
</button>
......@@ -144,6 +145,12 @@ export default class ItemLaporan extends Component {
data={this.state.indexData}
/>
)}
{this.state.edit && (
<EditItemLaporan
onClickClose={this.closeEdit.bind(this)}
data={this.state.indexData}
/>
)}
</div>
);
}
......
......@@ -405,7 +405,7 @@ export default class CreateItemLaporan extends Component {
style={{ width: '100%' }}
id="order"
label="Order"
value="1"
// value=""
inputProps={{
style: {
fontSize: 11,
......@@ -467,7 +467,7 @@ export default class CreateItemLaporan extends Component {
style={{ width: '100%' }}
id="weight"
label="Weight"
value="1"
// value=""
inputProps={{
style: {
fontSize: 11,
......@@ -493,7 +493,7 @@ export default class CreateItemLaporan extends Component {
style={{ width: '100%' }}
id="formula"
label="Formula"
value="1"
// value=""
inputProps={{
style: {
fontSize: 11,
......
This diff is collapsed.
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