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
fe4cca37
Commit
fe4cca37
authored
May 18, 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
# Conflicts: # view/Auth.js
parents
ad483a18
424f3b37
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
61 deletions
+55
-61
Auth.js
view/Auth.js
+50
-50
ChangePassword.js
view/ChangePassword.js
+0
-6
RewardHistory.js
view/RewardHistory.js
+5
-5
No files found.
view/Auth.js
View file @
fe4cca37
...
...
@@ -232,22 +232,20 @@ class Auth extends React.Component {
textAlign
:
'center'
},
title
:
'PROFIL'
}}
/
>
{
/* <Stack.Screen name="Change Profil" component={ChangeProfile} /> */
}
<
Stack
.
Screen
name
=
"Change language"
component
=
{
ChangeLanguage
}
/
>
<
Stack
.
Screen
name
=
"Change Profil"
component
=
{
ChangeProfile
}
/
>
{
/* <Stack.Screen name="Change language" component={ChangeLanguage} /> */
}
<
Stack
.
Screen
name
=
"Change password"
component
=
{
ChangePassword
}
options
=
{{
headerStyle
:
{
backgroundColor
:
'#CFB368'
},
headerTitleContainerStyle
:
{
alignContent
:
'center'
},
headerTitleAlign
:
'center'
,
headerTintColor
:
'#fff'
,
headerTitleStyle
:
{
alignSelf
:
'center'
,
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
textAlign
:
'center'
},
title
:
'CHANGE PASSWORD'
}}
/
>
<
Stack
.
Screen
name
=
"Change language"
component
=
{
ChangeLanguage
}
/
>
<
Stack
.
Screen
name
=
"Change password"
component
=
{
ChangePassword
}
options
=
{{
headerStyle
:
{
backgroundColor
:
'#CFB368'
},
headerTitleContainerStyle
:
{
alignContent
:
'center'
},
headerTitleAlign
:
'center'
,
headerTintColor
:
'#fff'
,
headerTitleStyle
:
{
alignSelf
:
'center'
,
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
textAlign
:
'center'
},
title
:
'CHANGE PASSWORD'
}}
/
>
<
Stack
.
Screen
name
=
"Card Activation"
component
=
{
CardActivation
}
/
>
<
Stack
.
Screen
name
=
"Renewal"
component
=
{
Renewal
}
/
>
<
Stack
.
Screen
name
=
"Account"
component
=
{
Account
}
/
>
...
...
@@ -258,31 +256,18 @@ class Auth extends React.Component {
<
Stack
.
Screen
name
=
"Upgrade Premium"
component
=
{
UpgradePremium
}
/
>
<
Stack
.
Screen
name
=
"Camera"
component
=
{
Cameras
}
/
>
<
Stack
.
Screen
name
=
"Delivery Address"
component
=
{
DeliveryAddress
}
options
=
{{
headerStyle
:
{
backgroundColor
:
"#ccb46c"
},
headerBackTitleStyle
:
{
color
:
'white'
},
headerTintColor
:
'#fff'
,
headerStyle
:
{
backgroundColor
:
'#CFB368'
},
headerTitleContainerStyle
:
{
alignContent
:
'center'
},
headerTitleAlign
:
'center'
,
headerTitleStyle
:
{
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
fontSize
:
20
,
},
title
:
'Delivery Address'
}}
/
>
<
Stack
.
Screen
name
=
"Address Detail"
component
=
{
AddressDetail
}
options
=
{{
headerStyle
:
{
backgroundColor
:
"#ccb46c"
},
headerBackTitleStyle
:
{
color
:
'white'
},
headerTintColor
:
'#fff'
,
headerTitleAlign
:
'center'
,
headerTitleStyle
:
{
alignSelf
:
'center'
,
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
fontSize
:
20
,
},
title
:
' Tambah Alamat'
textAlign
:
'center'
},
title
:
'Delivery Address'
}}
/
>
<
Stack
.
Screen
name
=
"Menu Detail"
component
=
{
MenuDetail
}
options
=
{({
route
})
=>
({
title
:
route
.
params
.
nameMenu
,
<
Stack
.
Screen
name
=
"Address Detail"
component
=
{
AddressDetail
}
options
=
{{
headerStyle
:
{
backgroundColor
:
'#CFB368'
},
headerTitleContainerStyle
:
{
alignContent
:
'center'
},
headerTitleAlign
:
'center'
,
...
...
@@ -292,8 +277,9 @@ class Auth extends React.Component {
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
textAlign
:
'center'
}
})}
/
>
},
title
:
'Tambah Alamat'
}}
/
>
<
Stack
.
Screen
name
=
"Menu Detail"
component
=
{
MenuDetail
}
/
>
<
Stack
.
Screen
name
=
"Pickup Name"
component
=
{
PickupName
}
options
=
{{
headerStyle
:
{
backgroundColor
:
'#CFB368'
},
headerTitleContainerStyle
:
{
alignContent
:
'center'
},
...
...
@@ -311,7 +297,21 @@ class Auth extends React.Component {
<
Stack
.
Screen
name
=
"Card Info"
component
=
{
CardInfo
}
/
>
<
Stack
.
Screen
name
=
"Shopping Cart"
component
=
{
ShoppingCart
}
/
>
<
Stack
.
Screen
name
=
"Order History"
component
=
{
OrderHistory
}
/
>
<
Stack
.
Screen
name
=
"Reward History"
component
=
{
RewardHistory
}
/
>
<
Stack
.
Screen
name
=
"Reward History"
component
=
{
RewardHistory
}
options
=
{{
headerStyle
:
{
backgroundColor
:
'#CFB368'
},
headerTitleContainerStyle
:
{
alignContent
:
'center'
},
headerTitleAlign
:
'center'
,
headerTintColor
:
'#fff'
,
headerTitleStyle
:
{
alignSelf
:
'center'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
18
,
color
:
'white'
,
textAlign
:
'center'
},
title
:
'Reward History'
}}
/
>
<
Stack
.
Screen
name
=
"Order Detail"
component
=
{
OrderDetail
}
options
=
{({
navigation
,
route
})
=>
({
headerLeft
:
props
=>
<
HeaderBackButton
{...
props
}
onPress
=
{()
=>
navigation
.
navigate
(
'Home'
,
{
screen
:
'ORDER'
})}
/>
,
...
...
@@ -396,19 +396,19 @@ class Auth extends React.Component {
}}
/
>
<
Stack
.
Screen
name
=
"TopUpInfo"
component
=
{
TopUpInfo
}
/
>
<
Stack
.
Screen
name
=
"Reward Detail"
component
=
{
RewardDetail
}
/
>
<
Stack
.
Screen
name
=
"Reward Select"
component
=
{
RewardSelect
}
options
=
{{
headerStyle
:
{
backgroundColor
:
"#CFB368"
},
headerBackTitleStyle
:
{
color
:
'white'
},
headerTintColor
:
'#fff'
,
headerTitleAlign
:
'center'
,
headerTitleStyle
:
{
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
fontSize
:
18
,
},
title
:
'REWARD SELECT'
}}
/
>
<
Stack
.
Screen
name
=
"Reward Select"
component
=
{
RewardSelect
}
options
=
{{
headerStyle
:
{
backgroundColor
:
"#CFB368"
},
headerBackTitleStyle
:
{
color
:
'white'
},
headerTintColor
:
'#fff'
,
headerTitleAlign
:
'center'
,
headerTitleStyle
:
{
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
fontSize
:
18
,
},
title
:
'REWARD SELECT'
}}
/
>
<
/Stack.Navigator
>
)
}
...
...
view/ChangePassword.js
View file @
fe4cca37
...
...
@@ -52,8 +52,6 @@ class ChangePassword extends React.Component {
onChangeText
=
{(
old_password
)
=>
this
.
setState
({
old_password
})}
value
=
{
this
.
state
.
old_password
}
secureTextEntry
=
{
true
}
placeholder
=
'******'
placeholderTextColor
=
'gray'
textAlign
=
'center'
/>
<
/View
>
<
/View
>
...
...
@@ -66,8 +64,6 @@ class ChangePassword extends React.Component {
onChangeText
=
{(
Password
)
=>
this
.
setState
({
Password
})}
value
=
{
this
.
state
.
Password
}
secureTextEntry
=
{
true
}
placeholder
=
'******'
placeholderTextColor
=
'gray'
textAlign
=
'center'
/>
<
/View
>
<
/View
>
...
...
@@ -80,8 +76,6 @@ class ChangePassword extends React.Component {
onChangeText
=
{(
Password_confirmation
)
=>
this
.
setState
({
Password_confirmation
})}
value
=
{
this
.
state
.
Password_confirmation
}
secureTextEntry
=
{
true
}
placeholder
=
'******'
placeholderTextColor
=
'gray'
textAlign
=
'center'
/>
<
/View
>
<
/View
>
...
...
view/RewardHistory.js
View file @
fe4cca37
...
...
@@ -61,16 +61,16 @@ class RewardHistory extends React.Component {
<
Image
source
=
{{
uri
:
item
.
reward
.
title_image
}}
resizeMethod
=
"resize"
resizeMode
=
'cover'
style
=
{{
height
:
1
5
0
,
width
:
'100%'
}}
/
>
style
=
{{
height
:
1
0
0
,
width
:
'100%'
}}
/
>
<
/View
>
<
View
style
=
{{
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
padding
:
10
}}
>
<
View
>
<
Text
style
=
{{
fontWeight
:
'bold'
,
textAlign
:
'left
'
}}
>
{
item
.
reward
.
title
}
<
/Text
>
<
Text
style
=
{{
textAlign
:
'left'
}}
>
{
item
.
reward
.
subtitle
}
<
/Text
>
<
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
>
<
View
>
<
Text
style
=
{{
textAlign
:
'right'
}}
>
Digunakan
:
<
/Text
>
<
Text
style
=
{{
textAlign
:
'right'
}}
>
{
item
.
used_time
}
<
/Text
>
<
Text
style
=
{{
textAlign
:
'right'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
}}
>
Used
at
<
/Text
>
<
Text
style
=
{{
textAlign
:
'right'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
}}
>
{
item
.
used_time
}
<
/Text
>
<
/View
>
<
/View
>
<
/Card
>
...
...
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