Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
clone_excelso
Project
Project
Details
Activity
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
Prasetya Saputra
clone_excelso
Commits
fd4ec96a
Commit
fd4ec96a
authored
Aug 05, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug tambah alamat
parent
a76096d8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
7 deletions
+30
-7
en.json
lib/en.json
+3
-1
id.json
lib/id.json
+3
-1
AddreesDetail.js
view/AddreesDetail.js
+24
-5
No files found.
lib/en.json
View file @
fd4ec96a
...
@@ -225,5 +225,7 @@
...
@@ -225,5 +225,7 @@
"headerPrivacyPolicy"
:
"Privacy Policy"
,
"headerPrivacyPolicy"
:
"Privacy Policy"
,
"alertTokenResetPassword"
:
"Please insert token"
,
"alertTokenResetPassword"
:
"Please insert token"
,
"alertNewPassword"
:
"Please insert new password"
,
"alertNewPassword"
:
"Please insert new password"
,
"alerConfirmNewPassword"
:
"Please insert confirm password"
"alerConfirmNewPassword"
:
"Please insert confirm password"
,
"alertLabelAddress"
:
"Please insert label address"
,
"alertDetailAddress"
:
"Please insert detail address"
}
}
\ No newline at end of file
lib/id.json
View file @
fd4ec96a
...
@@ -225,5 +225,7 @@
...
@@ -225,5 +225,7 @@
"headerPrivacyPolicy"
:
"Kebijakan Privasi"
,
"headerPrivacyPolicy"
:
"Kebijakan Privasi"
,
"alertTokenResetPassword"
:
"Silahkan masukan token"
,
"alertTokenResetPassword"
:
"Silahkan masukan token"
,
"alertNewPassword"
:
"Silahkan masukan password baru"
,
"alertNewPassword"
:
"Silahkan masukan password baru"
,
"alerConfirmNewPassword"
:
"Silahkan masukan konfirmasi password baru"
"alerConfirmNewPassword"
:
"Silahkan masukan konfirmasi password baru"
,
"alertLabelAddress"
:
"Silahkan masukan nama alamat"
,
"alertDetailAddress"
:
"Silahkan masukan detail alamat"
}
}
\ No newline at end of file
view/AddreesDetail.js
View file @
fd4ec96a
...
@@ -172,6 +172,16 @@ class AddreesDetail extends React.Component {
...
@@ -172,6 +172,16 @@ class AddreesDetail extends React.Component {
// console.log('LATITUDE' + '' + this.state.latitude + '' + 'LONGITUDE' + this.state.longitude)
// console.log('LATITUDE' + '' + this.state.latitude + '' + 'LONGITUDE' + this.state.longitude)
}
}
validation
(){
if
(
this
.
state
.
name
==
''
)
{
Alert
.
alert
(
i18n
.
t
(
'alertLabelAddress'
))
}
else
if
(
this
.
state
.
description
==
''
){
Alert
.
alert
(
i18n
.
t
(
'alertDetailAddress'
))
}
else
{
this
.
saveAddress
()
}
}
saveAddress
()
{
saveAddress
()
{
this
.
setState
({
this
.
setState
({
...
@@ -315,11 +325,20 @@ class AddreesDetail extends React.Component {
...
@@ -315,11 +325,20 @@ class AddreesDetail extends React.Component {
onFocus
=
{()
=>
this
.
setState
({
caretHidden
:
false
})}
/
>
onFocus
=
{()
=>
this
.
setState
({
caretHidden
:
false
})}
/
>
<
/View
>
<
/View
>
<
View
style
=
{{
margin
:
50
,
justifyContent
:
'center'
}}
>
<
View
style
=
{{
margin
:
50
,
justifyContent
:
'center'
}}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
saveAddress
()}
>
{
this
.
state
.
indicator
==
true
?
(
<
View
style
=
{{
height
:
40
,
borderRadius
:
10
,
backgroundColor
:
'#838383'
,
justifyContent
:
'center'
}}
>
<
ActivityIndicator
size
=
"large"
color
=
"#c9af6d"
/>
<
/View
>
)
:
(
<
TouchableOpacity
onPress
=
{()
=>
this
.
validation
()}
>
<
View
style
=
{{
height
:
40
,
borderRadius
:
10
,
backgroundColor
:
'#CFB368'
,
justifyContent
:
'center'
}}
>
<
View
style
=
{{
height
:
40
,
borderRadius
:
10
,
backgroundColor
:
'#CFB368'
,
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
fontSize
:
16
,
textAlign
:
'center'
}}
>
{
i18n
.
t
(
'addaddress'
)}
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
fontSize
:
16
,
textAlign
:
'center'
}}
>
{
i18n
.
t
(
'addaddress'
)}
<
/Text
>
<
/View
>
<
/View
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
)
}
<
/View
>
<
/View
>
<
View
style
=
{{
height
:
20
}}
><
/View
>
<
View
style
=
{{
height
:
20
}}
><
/View
>
<
/View
>
<
/View
>
...
...
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