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
2abb154a
Commit
2abb154a
authored
May 26, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://repo.cs.co.id:2222/wahyu/bahanoprek
parents
9dc2f308
2cfe4ba6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
71 additions
and
62 deletions
+71
-62
Auth.js
view/Auth.js
+3
-3
MenuConfirmation.js
view/MenuConfirmation.js
+55
-46
RewardsList.js
view/RewardsList.js
+10
-10
ShoppingCart.js
view/ShoppingCart.js
+1
-1
WelcomeLog.js
view/WelcomeLog.js
+2
-2
No files found.
view/Auth.js
View file @
2abb154a
...
...
@@ -500,7 +500,7 @@ class Auth extends React.Component {
{
/* <Stack.Screen name="Email Confirmation" component={EmailConfirmation} /> */
}
<
Stack
.
Screen
name
=
"News Detail"
component
=
{
NewsDetail
}
options
=
{{
headerShown
:
false
}}
/
>
<
Stack
.
Screen
name
=
"C
onfirm Your Order
"
component
=
{
MenuConfirmation
}
<
Stack
.
Screen
name
=
"C
ONFIRM YOUR ORDER
"
component
=
{
MenuConfirmation
}
options
=
{{
headerStyle
:
{
backgroundColor
:
"#CFB368"
},
headerBackTitleStyle
:
{
color
:
'white'
},
...
...
@@ -509,9 +509,9 @@ class Auth extends React.Component {
headerTitleStyle
:
{
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
fontSize
:
18
,
fontSize
:
20
,
},
title
:
'C
onfirm Your Order
'
title
:
'C
ONFIRM YOUR ORDER
'
}}
/
>
<
Stack
.
Screen
name
=
"Date Time"
component
=
{
DateTime
}
/
>
<
Stack
.
Screen
name
=
"New Register"
component
=
{
NewRegister
}
...
...
view/MenuConfirmation.js
View file @
2abb154a
This diff is collapsed.
Click to expand it.
view/RewardsList.js
View file @
2abb154a
...
...
@@ -51,7 +51,7 @@ class RewardsList extends React.Component {
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
header
}
>
<
Text
style
=
{{
color
:
'white'
,
textAlign
:
'center'
,
fontSize
:
18
,
fontFamily
:
'Gotham-Black'
}}
>
REWARDS
E
-
VOUCHER
<
/Text
>
<
Text
style
=
{{
color
:
'white'
,
textAlign
:
'center'
,
fontSize
:
20
,
fontFamily
:
'Gotham-Black'
}}
>
REWARDS
E
-
VOUCHER
<
/Text
>
<
/View
>
<
ScrollView
style
=
{
styles
.
body
}
>
{
...
...
@@ -59,21 +59,21 @@ class RewardsList extends React.Component {
this
.
state
.
rewardsList
.
map
((
item
,
key
)
=>
(
<
TouchableOpacity
key
=
{
key
}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Reward Detail'
,
{
rewardId
:
item
.
id
})}
>
<
View
style
=
{{
alignItems
:
'center'
}}
>
<
Card
style
=
{{
padding
:
5
,
margin
:
10
}}
>
<
Card
style
=
{{
padding
:
5
,
margin
:
5
}}
>
<
View
>
<
Image
source
=
{{
uri
:
item
.
reward
.
title_image
}}
resizeMethod
=
"resize"
resizeMode
=
'cover'
style
=
{{
height
:
100
,
width
:
'100%'
}}
/
>
<
/View
>
<
View
style
=
{{
flex
Direction
:
'row'
,
justifyContent
:
'space-between'
,
padding
:
10
}}
>
<
View
>
<
Text
style
=
{{
textAlign
:
'left'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Black'
}}
>
{
item
.
reward
.
title
}
<
/Text
>
<
Text
style
=
{{
textAlign
:
'left'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
}}
>
{
item
.
reward
.
subtitle
}
<
/Text
>
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
}}
>
<
View
style
=
{{
flex
:
0.6
}}
>
<
Text
style
=
{{
textAlign
:
'left'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Black'
,
color
:
'#838383'
}}
>
{
item
.
reward
.
title
}
<
/Text
>
<
Text
style
=
{{
textAlign
:
'left'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'#838383'
}}
>
{
item
.
reward
.
subtitle
}
<
/Text
>
<
/View
>
<
View
>
<
Text
style
=
{{
textAlign
:
'right'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
}}
>
Expired
<
/Text
>
<
Text
style
=
{{
textAlign
:
'right'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
}}
>
{
item
.
expire_time
}
<
/Text
>
<
View
style
=
{{
flex
:
0.4
}}
>
<
Text
style
=
{{
textAlign
:
'right'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'#838383'
}}
>
Expired
On
<
/Text
>
<
Text
style
=
{{
textAlign
:
'right'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'#838383'
}}
>
{
item
.
expire_time
}
<
/Text
>
<
/View
>
<
/View
>
<
/Card
>
...
...
@@ -86,7 +86,7 @@ class RewardsList extends React.Component {
<
/View
>
)
}
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Reward History'
)}
>
<
TouchableOpacity
style
=
{{
marginVertical
:
20
}}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Reward History'
)}
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'#CFB368'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Black'
}}
>
REDEEM
E
-
VOUCHER
HISTORY
<
/Text
>
<
/TouchableOpacity
>
<
View
style
=
{{
height
:
15
}}
/
>
...
...
view/ShoppingCart.js
View file @
2abb154a
...
...
@@ -393,7 +393,7 @@ class ShoppingCart extends React.Component {
}
else
if
(
this
.
state
.
checkedBalance
==
false
&&
this
.
state
.
checkedPoint
==
false
&&
this
.
state
.
checkedBalancePoint
==
false
)
{
Alert
.
alert
(
'Error'
,
'Please insert payment methods'
)
}
else
{
this
.
props
.
navigation
.
navigate
(
'C
onfirm Your Order
'
,
{
balanceUsed
:
this
.
state
.
balanceused
,
pointused
:
this
.
state
.
pointsused
})
this
.
props
.
navigation
.
navigate
(
'C
ONFIRM YOUR ORDER
'
,
{
balanceUsed
:
this
.
state
.
balanceused
,
pointused
:
this
.
state
.
pointsused
})
}
}
...
...
view/WelcomeLog.js
View file @
2abb154a
...
...
@@ -47,8 +47,8 @@ export default class WelcomeLog extends React.Component {
},
],
})}
>
<
View
style
=
{{
height
:
50
,
borderRadius
:
2
0
,
backgroundColor
:
'#CFB368'
}}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'
black'
,
fontSize
:
20
,
textAlign
:
'center'
,
margin
:
15
}}
>
NEXT
<
/Text
>
<
View
style
=
{{
height
:
40
,
borderRadius
:
1
0
,
backgroundColor
:
'#CFB368'
}}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'
white'
,
fontSize
:
16
,
textAlign
:
'center'
,
margin
:
11
}}
>
NEXT
<
/Text
>
<
/View
>
<
/TouchableOpacity
>
<
/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