Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
new_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
new_excelso
Commits
b82ee315
Commit
b82ee315
authored
Jun 17, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
translate address detail
parent
05b3d00b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
AddreesDetail.js
view/AddreesDetail.js
+5
-3
No files found.
view/AddreesDetail.js
View file @
b82ee315
...
@@ -10,6 +10,7 @@ import Axios from 'axios';
...
@@ -10,6 +10,7 @@ import Axios from 'axios';
import
Spinner
from
'react-native-loading-spinner-overlay'
;
import
Spinner
from
'react-native-loading-spinner-overlay'
;
import
{
MaterialCommunityIcons
,
Ionicons
}
from
'@expo/vector-icons'
;
import
{
MaterialCommunityIcons
,
Ionicons
}
from
'@expo/vector-icons'
;
import
ActionType
from
'../redux/globalActionType'
;
import
ActionType
from
'../redux/globalActionType'
;
import
i18n
from
'i18n-js'
;
class
AddreesDetail
extends
React
.
Component
{
class
AddreesDetail
extends
React
.
Component
{
...
@@ -227,13 +228,13 @@ class AddreesDetail extends React.Component {
...
@@ -227,13 +228,13 @@ class AddreesDetail extends React.Component {
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
field_name_addrees
}
>
<
View
style
=
{
styles
.
field_name_addrees
}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
"#ccb46c"
,
textAlign
:
'center'
,
fontSize
:
18
}}
>
Label
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
"#ccb46c"
,
textAlign
:
'center'
,
fontSize
:
18
}}
>
{
i18n
.
t
(
'label'
)}
<
/Text
>
<
TextInput
style
=
{{
height
:
40
,
borderWidth
:
1
,
padding
:
5
,
flex
:
1
,
margin
:
10
,
borderRadius
:
10
,
borderColor
:
'grey'
}}
onChangeText
=
{(
name
)
=>
this
.
setState
({
name
})}
/
>
<
TextInput
style
=
{{
height
:
40
,
borderWidth
:
1
,
padding
:
5
,
flex
:
1
,
margin
:
10
,
borderRadius
:
10
,
borderColor
:
'grey'
}}
onChangeText
=
{(
name
)
=>
this
.
setState
({
name
})}
/
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
field_detail_addrees
}
>
<
View
style
=
{
styles
.
field_detail_addrees
}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
"#ccb46c"
,
textAlign
:
'center'
,
fontSize
:
18
}}
>
Detail
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
"#ccb46c"
,
textAlign
:
'center'
,
fontSize
:
18
}}
>
{
i18n
.
t
(
'detail'
)}
<
/Text
>
<
TextInput
<
TextInput
style
=
{{
height
:
150
,
borderWidth
:
1
,
padding
:
5
,
flex
:
1
,
margin
:
10
,
borderRadius
:
10
,
borderColor
:
'grey'
}}
style
=
{{
height
:
150
,
borderWidth
:
1
,
padding
:
5
,
flex
:
1
,
margin
:
10
,
borderRadius
:
10
,
borderColor
:
'grey'
}}
onChangeText
=
{(
description
)
=>
this
.
setState
({
description
})}
onChangeText
=
{(
description
)
=>
this
.
setState
({
description
})}
...
@@ -243,7 +244,7 @@ class AddreesDetail extends React.Component {
...
@@ -243,7 +244,7 @@ class AddreesDetail extends React.Component {
<
View
style
=
{{
margin
:
50
,
justifyContent
:
'center'
}}
>
<
View
style
=
{{
margin
:
50
,
justifyContent
:
'center'
}}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
saveAddress
()}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
saveAddress
()}
>
<
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'
}}
>
Tambah
Alamat
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
fontSize
:
16
,
textAlign
:
'center'
}}
>
{
i18n
.
t
(
'addaddress'
)}
<
/Text
>
<
/View
>
<
/View
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
...
@@ -315,6 +316,7 @@ const mapStateToProps = (state) => {
...
@@ -315,6 +316,7 @@ const mapStateToProps = (state) => {
return
{
return
{
session_id
:
state
.
session_id
,
session_id
:
state
.
session_id
,
language
:
state
.
language
,
}
}
}
}
...
...
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