Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
f639c475
Commit
f639c475
authored
Sep 11, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'deni-dev(pc)' into 'master'
isu masterdata See merge request
!286
parents
fd949054
9de6d9c8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
CreateParameter.js
src/container/MasterData/Parameter/CreateParameter.js
+8
-8
Profile.js
src/container/Profile.js
+5
-4
No files found.
src/container/MasterData/Parameter/CreateParameter.js
View file @
f639c475
...
...
@@ -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
()
}
...
...
src/container/Profile.js
View file @
f639c475
...
...
@@ -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> : nul
l
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment