Commit 2570195c authored by EKSAD's avatar EKSAD

update edit item laporan

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