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
57f11248
Commit
57f11248
authored
Apr 30, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
terbaru
parent
64795291
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
4 deletions
+16
-4
app.json
app.json
+1
-1
Auth.js
view/Auth.js
+1
-1
Home.js
view/Home.js
+10
-1
MenuConfirmation.js
view/MenuConfirmation.js
+2
-1
ShoppingCart.js
view/ShoppingCart.js
+2
-0
No files found.
app.json
View file @
57f11248
{
{
"expo"
:
{
"expo"
:
{
"name"
:
"Excelso_update"
,
"name"
:
"Excelso_update
v1_sore
"
,
"slug"
:
"excelso-pro"
,
"slug"
:
"excelso-pro"
,
"privacy"
:
"public"
,
"privacy"
:
"public"
,
"sdkVersion"
:
"36.0.0"
,
"sdkVersion"
:
"36.0.0"
,
...
...
view/Auth.js
View file @
57f11248
...
@@ -111,7 +111,7 @@ function HomePage({navigation}) {
...
@@ -111,7 +111,7 @@ function HomePage({navigation}) {
<
Tab
.
Screen
name
=
"HOME"
component
=
{
Home
}
/
>
<
Tab
.
Screen
name
=
"HOME"
component
=
{
Home
}
/
>
<
Tab
.
Screen
name
=
"MENU"
component
=
{
MenuSelection
}
/
>
<
Tab
.
Screen
name
=
"MENU"
component
=
{
MenuSelection
}
/
>
<
Tab
.
Screen
name
=
"REWARDS"
component
=
{
Rewards
}
/
>
<
Tab
.
Screen
name
=
"REWARDS"
component
=
{
Rewards
}
/
>
<
Tab
.
Screen
name
=
"ORDER"
component
=
{
Transaction
History
}
/
>
<
Tab
.
Screen
name
=
"ORDER"
component
=
{
Order
History
}
/
>
<
Tab
.
Screen
name
=
"OUTLETS"
component
=
{
Outlets
}
/
>
<
Tab
.
Screen
name
=
"OUTLETS"
component
=
{
Outlets
}
/
>
<
Tab
.
Screen
name
=
"ACCOUNT"
component
=
{
Account
}
/
>
<
Tab
.
Screen
name
=
"ACCOUNT"
component
=
{
Account
}
/
>
<
/Tab.Navigator
>
<
/Tab.Navigator
>
...
...
view/Home.js
View file @
57f11248
...
@@ -140,6 +140,14 @@ class Home extends React.Component {
...
@@ -140,6 +140,14 @@ class Home extends React.Component {
this
.
props
.
navigation
.
navigate
(
'Pickup Name'
);
this
.
props
.
navigation
.
navigate
(
'Pickup Name'
);
}
}
_order
(){
let
typeProps
=
{
type_pickup
:
false
,
}
this
.
props
.
setTypePickup
(
typeProps
);
this
.
props
.
navigation
.
navigate
(
'Delivery Address'
);
}
render
()
{
render
()
{
return
(
return
(
...
@@ -183,7 +191,7 @@ class Home extends React.Component {
...
@@ -183,7 +191,7 @@ class Home extends React.Component {
<
View
style
=
{
styles
.
card
}
>
<
View
style
=
{
styles
.
card
}
>
<
Card
>
<
Card
>
<
View
style
=
{{
flexDirection
:
'row'
,
justifyContent
:
'center'
}}
>
<
View
style
=
{{
flexDirection
:
'row'
,
justifyContent
:
'center'
}}
>
<
TouchableOpacity
style
=
{
styles
.
buttonDelivery
}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Delivery Address'
)
}
>
<
TouchableOpacity
style
=
{
styles
.
buttonDelivery
}
onPress
=
{()
=>
this
.
_order
()
}
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'#354175'
,
fontWeight
:
'bold'
}}
>
{
i18n
.
t
(
'delivery'
)}
<
/Text
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'#354175'
,
fontWeight
:
'bold'
}}
>
{
i18n
.
t
(
'delivery'
)}
<
/Text
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
style
=
{
styles
.
buttonPickup
}
onPress
=
{()
=>
this
.
_pickup
()}
>
<
TouchableOpacity
style
=
{
styles
.
buttonPickup
}
onPress
=
{()
=>
this
.
_pickup
()}
>
...
@@ -250,6 +258,7 @@ class Home extends React.Component {
...
@@ -250,6 +258,7 @@ class Home extends React.Component {
<
TouchableOpacity
style
=
{
styles
.
submitUpgradePemium
}
activeOpacity
=
{.
5
}
onPress
=
{
this
.
onPress
}
>
<
TouchableOpacity
style
=
{
styles
.
submitUpgradePemium
}
activeOpacity
=
{.
5
}
onPress
=
{
this
.
onPress
}
>
<
Text
style
=
{{
textAlign
:
'center'
,
bottom
:
5
,
color
:
'white'
}}
>
TOP
BALANCE
<
/Text
>
<
Text
style
=
{{
textAlign
:
'center'
,
bottom
:
5
,
color
:
'white'
}}
>
TOP
BALANCE
<
/Text
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
Text
>
APP
.
V2
.
APRIL
<
/Text
>
<
View
style
=
{{
height
:
60
}}
><
/View
>
<
View
style
=
{{
height
:
60
}}
><
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
...
view/MenuConfirmation.js
View file @
57f11248
...
@@ -2,6 +2,7 @@ import React from 'react';
...
@@ -2,6 +2,7 @@ import React from 'react';
import
{
View
,
Text
,
Alert
,
TextInput
,
StyleSheet
,
Button
,
ScrollView
}
from
'react-native'
;
import
{
View
,
Text
,
Alert
,
TextInput
,
StyleSheet
,
Button
,
ScrollView
}
from
'react-native'
;
import
Axios
from
'axios'
import
Axios
from
'axios'
import
{
connect
}
from
'react-redux'
import
{
connect
}
from
'react-redux'
import
ActionType
from
'../redux/globalActionType'
;
import
Spinner
from
'react-native-loading-spinner-overlay'
;
import
Spinner
from
'react-native-loading-spinner-overlay'
;
class
MenuConfirmation
extends
React
.
Component
{
class
MenuConfirmation
extends
React
.
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -66,7 +67,7 @@ class MenuConfirmation extends React.Component {
...
@@ -66,7 +67,7 @@ class MenuConfirmation extends React.Component {
);
);
let
typeProps
=
{
let
typeProps
=
{
type_pickup
:
fals
e
,
type_pickup
:
tru
e
,
}
}
this
.
props
.
setTypePickup
(
typeProps
);
this
.
props
.
setTypePickup
(
typeProps
);
...
...
view/ShoppingCart.js
View file @
57f11248
...
@@ -116,6 +116,8 @@ class ShoppingCart extends React.Component {
...
@@ -116,6 +116,8 @@ class ShoppingCart extends React.Component {
this
.
props
.
removeFromChart
(
order_item
)
this
.
props
.
removeFromChart
(
order_item
)
}
}
}
}
}
}
}
}
...
...
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