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
b1bd6dc2
Commit
b1bd6dc2
authored
Jun 04, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
account
parent
b50fa240
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
39 deletions
+49
-39
Account.js
view/Account.js
+44
-36
OrderDetail.js
view/OrderDetail.js
+1
-1
RatingOrder.js
view/RatingOrder.js
+4
-2
No files found.
view/Account.js
View file @
b1bd6dc2
...
...
@@ -226,8 +226,9 @@ class Account extends React.Component {
<
View
>
<
View
style
=
{
styles
.
Card
}
>
<
View
style
=
{
styles
.
card
}
>
<
Card
style
=
{{
padding
:
5
,
margin
:
5
,
alignContent
:
'center'
}}
>
<
View
style
=
{{
flexDirection
:
'row'
,
flex
:
1
,
paddingBottom
:
5
}}
>
<
View
style
=
{
styles
.
card
}
>
<
Card
style
=
{{
padding
:
20
,
alignContent
:
'center'
}}
>
<
View
style
=
{{
flexDirection
:
'row'
,
flex
:
1
,
paddingBottom
:
5
}}
>
<
View
style
=
{{
flex
:
0.5
}}
>
<
Text
style
=
{{
fontSize
:
10
,
fontFamily
:
'Gotham-Light'
}}
>
YOUR
CARD
NUMBER
<
/Text
>
<
/View
>
...
...
@@ -241,26 +242,33 @@ class Account extends React.Component {
<
/Text
>
<
/View
>
<
View
style
=
{
styles
.
line
}
><
/View
>
<
View
style
=
{{
flexDirection
:
'row'
,
flex
:
1
}}
>
<
View
style
=
{{
flex
:
0.3
,
justifyContent
:
'center'
}}
>
{
/* <Text>{i18n.t('balance')}</Text> */
}
<
Text
style
=
{{
fontSize
:
14
,
fontFamily
:
'Gotham-Light'
}}
>
BALANCE
<
/Text
>
<
/View
>
<
View
style
=
{{
flex
:
0.7
,
alignItems
:
'center'
}}
>
<
Text
style
=
{{
fontSize
:
14
,
fontFamily
:
'Gotham-Black'
,
color
:
'gray'
}}
>
IDR
{
this
.
state
.
balance
}
<
/Text
>
<
View
style
=
{{
flex
:
0.7
,
alignItems
:
'center'
}}
>
<
Text
style
=
{{
fontSize
:
14
,
fontFamily
:
'Gotham-Black'
,
color
:
'gray'
}}
>
IDR
{
this
.
state
.
balance
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
line2
}
><
/View
>
{
/* <Text style={{ textAlign: 'left', fontWeight: 'bold' }}>
{i18n.t('point')} {this.state.point}
</Text> */
}
<
View
style
=
{{
flexDirection
:
'row'
,
flex
:
1
}}
>
<
View
style
=
{{
flex
:
0.3
,
justifyContent
:
'center'
}}
>
{
/* <Text>{i18n.t('balance')}</Text> */
}
<
Text
style
=
{{
fontSize
:
14
,
fontFamily
:
'Gotham-Light'
}}
>
POINTS
<
/Text
>
<
/View
>
<
View
style
=
{{
flex
:
0.7
,
alignItems
:
'center'
}}
>
<
Text
style
=
{{
fontSize
:
14
,
fontFamily
:
'Gotham-Black'
,
color
:
'gray'
}}
>
IDR
{
this
.
state
.
point
}
<
/Text
>
<
View
style
=
{{
flex
:
0.7
,
alignItems
:
'center'
}}
>
<
Text
style
=
{{
fontSize
:
14
,
fontFamily
:
'Gotham-Black'
,
color
:
'gray'
}}
>
IDR
{
this
.
state
.
points
}
<
/Text
>
<
/View
>
<
/View
>
<
/Card
>
<
/View
>
<
/View
>
<
/View
>
<
TouchableOpacity
style
=
{
styles
.
submitTopUp
}
activeOpacity
=
{.
5
}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'TopUpInfo'
)}
>
...
...
@@ -390,7 +398,7 @@ const styles = StyleSheet.create({
},
card
:
{
top
:
10
,
top
:
5
,
flex
:
1
,
alignItems
:
'center'
,
marginRight
:
10
,
...
...
view/OrderDetail.js
View file @
b1bd6dc2
...
...
@@ -375,7 +375,7 @@ class OrderDetail extends React.Component {
this
.
state
.
is_reviewed
?
(
<
View
style
=
{{
height
:
70
,
borderWidth
:
1
,
borderRadius
:
10
,
justifyContent
:
'center'
,
margin
:
30
,
borderColor
:
'#CFB368'
}}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Light'
,
color
:
'#838383'
,
fontSize
:
16
,
textAlign
:
'center'
,
paddingHorizontal
:
5
}}
>
Rate
Your
Star
({
this
.
state
.
review_rating
})
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Light'
,
color
:
'#838383'
,
fontSize
:
16
,
textAlign
:
'center'
,
paddingHorizontal
:
5
}}
>
You
Rated
({
this
.
state
.
review_rating
})
<
/Text
>
<
Rating
imageSize
=
{
20
}
style
=
{{
top
:
5
}}
readonly
startingValue
=
{
this
.
state
.
review_rating
}
ratingBackgroundColor
=
'#CFB368'
/>
<
/View
>
...
...
view/RatingOrder.js
View file @
b1bd6dc2
...
...
@@ -108,7 +108,7 @@ class RatingOrder extends React.Component {
<
View
style
=
{{
flex
:
1
,
marginRight
:
30
,
marginLeft
:
30
,
}}
>
<
AirbnbRating
count
=
{
5
}
reviews
=
{[
"Need
improvement"
,
"Bel
low average"
,
"Average"
,
"Good"
,
"Awesome"
]}
reviews
=
{[
"Need
s improvement"
,
"Be
low average"
,
"Average"
,
"Good"
,
"Awesome"
]}
onFinishRating
=
{
rating
=>
this
.
rating
(
rating
)}
defaultRating
=
{
5
}
size
=
{
30
}
...
...
@@ -119,6 +119,8 @@ class RatingOrder extends React.Component {
value
=
{
this
.
state
.
review
}
autoCapitalize
=
"none"
value
=
{
this
.
state
.
review
}
multiline
=
{
true
}
numberOfLines
=
{
5
}
/
>
<
TouchableOpacity
style
=
{{
height
:
100
}}
onPress
=
{()
=>
this
.
review
()}
>
...
...
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