Commit f639c475 authored by Deni Rinaldi's avatar Deni Rinaldi

Merge branch 'deni-dev(pc)' into 'master'

isu masterdata

See merge request !286
parents fd949054 9de6d9c8
......@@ -654,11 +654,11 @@ export default class CreateParameter extends Component {
}}
name="min_value"
onChange={(e) => {
let coba = String(e.target.value).replace(/[^\d]/g, '');
// let coba = String(e.target.value).replace(/[^\d]/g, '');
this.setState({
tempData: {
...this.state.tempData,
min_value: coba
min_value: e.target.value
}
})
this.clearMessage()
......@@ -822,11 +822,11 @@ export default class CreateParameter extends Component {
}}
name="max_value"
onChange={(e) => {
let coba = String(e.target.value).replace(/[^\d]/g, '');
// let coba = String(e.target.value).replace(/[^\d]/g, '');
this.setState({
tempData: {
...this.state.tempData,
max_value: coba
max_value: e.target.value
}
})
this.clearMessage()
......@@ -1035,9 +1035,9 @@ export default class CreateParameter extends Component {
}}
name="minValue"
onChange={(e) => {
let coba = String(e.target.value).replace(/[^\d]/g, '');
// let coba = String(e.target.value).replace(/[^\d]/g, '');
this.setState({
minValue: coba
minValue: e.target.value
})
this.clearMessage()
}
......@@ -1194,9 +1194,9 @@ export default class CreateParameter extends Component {
}}
name="maxValue"
onChange={(e) => {
let coba = String(e.target.value).replace(/[^\d]/g, '');
// let coba = String(e.target.value).replace(/[^\d]/g, '');
this.setState({
maxValue: coba
maxValue: e.target.value
})
this.clearMessage()
}
......
......@@ -383,9 +383,9 @@ export default class Profile extends Component {
onClick={() => this.setState({ uploadVisible: true })}
>
{/* <img src={Images.photo} /> */}
<div style={{ width: 93, height: 30, objectFit: 'contain', backgroundColor: '#019ce5', borderRadius: 4, display: 'flex', alignContent: 'center', justifyContent: 'center' }}>
<div style={{ height: 30, objectFit: 'contain', backgroundColor: '#019ce5', borderRadius: 4, display: 'flex', alignContent: 'center', justifyContent: 'center', paddingLeft: 10, paddingRight: 10 }}>
<img src={Images.camera} />
<Typography style={{ color: '#ffffff', fontSize: 11, fontFamily: 'Nunito Sans, sans-serif', alignSelf: 'center', marginLeft: 5 }}>Ganti Foto</Typography>
<Typography style={{ color: '#ffffff', fontSize: 11, fontFamily: 'Nunito Sans, sans-serif', alignSelf: 'center', marginLeft: 5 }}>Change Picture</Typography>
</div>
</button>
</div>
......@@ -610,7 +610,8 @@ export default class Profile extends Component {
<ImageUploader
withIcon={true}
withPreview
buttonText='Pilih Gambar'
buttonStyles={this.state.pictures.length > 0 ? { display: 'none' } : null}
buttonText={'Select Picture'}
onChange={this.onDrop}
imgExtension={['.jpg', '.gif', '.png', '.gif', '.jpeg']}
maxFileSize={1000000}
......@@ -620,7 +621,7 @@ export default class Profile extends Component {
<div style={{ display: 'grid', margin: 20 }}>
<div style={{ justifySelf: 'center' }}>
<span className="main-color" style={{ color: '#fff', padding: 20, paddingBottom: 10, paddingTop: 10, borderRadius: 15, cursor: 'pointer' }} onClick={() => this.uploadFoto()}>Upload Foto</span>
<span className="main-color" style={{ color: '#fff', padding: 20, paddingBottom: 10, paddingTop: 10, borderRadius: 15, cursor: 'pointer' }} onClick={() => this.uploadFoto()}>Upload</span>
</div>
</div> : null
}
......
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