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
e6ff26ce
Commit
e6ff26ce
authored
May 17, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update design, fix minor error
parent
68612dd5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
203 additions
and
57 deletions
+203
-57
Home.js
view/Home.js
+1
-1
MenuConfirmation.js
view/MenuConfirmation.js
+175
-39
ShoppingCart.js
view/ShoppingCart.js
+27
-17
No files found.
view/Home.js
View file @
e6ff26ce
...
...
@@ -367,7 +367,7 @@ class Home extends React.Component {
<
View
style
=
{{
flexDirection
:
'row'
,
flex
:
1
}}
>
<
TouchableOpacity
// style={styles.submitUpgradePemium}
activeOpacity
=
{.
5
}
onPress
=
{
this
.
onPress
}
>
activeOpacity
=
{.
5
}
onPress
=
{
()
=>
this
.
props
.
navigation
.
navigate
(
'TopUpInfo'
)
}
>
<
View
style
=
{
styles
.
topUseBalance
}
>
<
Text
style
=
{{
textAlign
:
'center'
,
bottom
:
5
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
}}
>
TOP
BALANCE
<
/Text
>
<
/View
>
...
...
view/MenuConfirmation.js
View file @
e6ff26ce
This diff is collapsed.
Click to expand it.
view/ShoppingCart.js
View file @
e6ff26ce
...
...
@@ -126,6 +126,17 @@ class ShoppingCart extends React.Component {
this
.
props
.
navigation
.
navigate
(
'Reward Select'
)
}
handleAddVoucher
()
{
this
.
setState
({
checkedBalance
:
false
,
checkedPoint
:
false
,
checkedBalancePoint
:
false
,
pointsused
:
0
,
balanceused
:
0
})
this
.
props
.
navigation
.
navigate
(
'Reward Select'
)
}
handleMin
(
item
,
index
)
{
this
.
setState
({
checkedBalance
:
false
,
...
...
@@ -437,7 +448,7 @@ class ShoppingCart extends React.Component {
<
/Card
>
)
:
(
<
Card
style
=
{{
margin
:
5
,
padding
:
10
}}
>
<
Text
style
=
{{
textAlign
:
'center'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
12
}}
>
OUR
DRIVER
WILL
DELIVER
YOU
ORDER
TO
<
/Text
>
<
Text
style
=
{{
textAlign
:
'center'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
12
}}
>
OUR
DRIVER
WILL
DELIVER
YOU
R
ORDER
TO
<
/Text
>
<
Text
style
=
{{
textAlign
:
'center'
,
fontSize
:
12
,
top
:
5
,
fontFamily
:
'Gotham-Light'
}}
>
{
this
.
props
.
address
}
<
/Text
>
<
/Card
>
)
...
...
@@ -466,7 +477,7 @@ class ShoppingCart extends React.Component {
<
View
style
=
{
styles
.
voucher
}
>
{
this
.
props
.
value_voucher
==
''
?
(
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Reward Select'
)}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
handleAddVoucher
(
)}
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'#CFB368'
}}
>+
ADD
VOUCHER
<
/Text
>
<
/TouchableOpacity
>
)
:
(
...
...
@@ -611,7 +622,7 @@ class ShoppingCart extends React.Component {
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
}}
>
Your
Balance
<
/Text
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
}}
>
Your
Points
<
/Text
>
<
/View
>
<
View
style
=
{{
paddingRight
:
30
,
alignItems
:
'flex-end'
}}
>
<
View
style
=
{{
alignItems
:
'flex-end'
}}
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
}}
>
{
this
.
state
.
kasproBalance
}
<
/Text
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
}}
>
{
this
.
state
.
kasproPoint
}
<
/Text
>
<
/View
>
...
...
@@ -621,7 +632,7 @@ class ShoppingCart extends React.Component {
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
}}
>
Your
Balance
Used
<
/Text
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
}}
>
Your
Points
Used
<
/Text
>
<
/View
>
<
View
style
=
{{
paddingRight
:
30
,
marginTop
:
5
,
alignItems
:
'flex-end'
}}
>
<
View
style
=
{{
marginTop
:
5
,
alignItems
:
'flex-end'
}}
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
}}
>-
{
this
.
state
.
balanceused
}
<
/Text
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
}}
>-
{
this
.
state
.
pointsused
}
<
/Text
>
<
/View
>
...
...
@@ -660,23 +671,22 @@ class ShoppingCart extends React.Component {
<
/View>
)
}
<
View
style
=
{{
flexDirection
:
'row'
,
marginTop
:
10
,
justifyContent
:
'space-between'
}}
>
<
View
style
=
{{
paddingLeft
:
20
,
paddingTop
:
10
,
}}
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'gray'
}}
>
Diskon
<
/Text
>
<
/View
>
{
this
.
props
.
value_voucher
==
''
?
(
<
View
style
=
{{
paddingRight
:
30
,
paddingTop
:
10
,
alignItems
:
'flex-end'
}}
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'gray'
}}
>
{
this
.
state
.
diskon
}
<
/Text
>
<
/View
>
)
:
(
{
this
.
props
.
value_voucher
==
''
?
(
null
)
:
(
<
View
style
=
{{
flexDirection
:
'row'
,
marginTop
:
10
,
justifyContent
:
'space-between'
}}
>
<
View
style
=
{{
paddingLeft
:
20
,
paddingTop
:
10
,
}}
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'gray'
}}
>
Diskon
<
/Text
>
<
/View
>
<
View
style
=
{{
paddingRight
:
30
,
paddingTop
:
10
,
alignItems
:
'flex-end'
}}
>
<
Text
style
=
{{
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'gray'
}}
>
{
this
.
props
.
voucher
.
reward
.
value
}
<
/Text
>
<
/View
>
)
}
<
/View
>
)
}
<
/View
>
<
View
style
=
{{
flexDirection
:
'row'
,
marginTop
:
10
,
justifyContent
:
'space-between'
}}
>
<
View
style
=
{{
marginTop
:
15
,
paddingLeft
:
20
,
paddingTop
:
10
}}
>
<
Text
style
=
{{
fontSize
:
25
,
color
:
'#CFB368'
,
fontFamily
:
'Gotham-Black'
,
}}
>
TOTAL
<
/Text
>
...
...
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