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
5615f2d3
Commit
5615f2d3
authored
Jun 29, 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
490262f0
181dafb1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
Account.js
view/Account.js
+1
-1
Home.js
view/Home.js
+1
-1
OrderHistory.js
view/OrderHistory.js
+3
-1
RewardsList.js
view/RewardsList.js
+3
-2
No files found.
view/Account.js
View file @
5615f2d3
...
@@ -252,7 +252,7 @@ class Account extends React.Component {
...
@@ -252,7 +252,7 @@ class Account extends React.Component {
const
navigation
=
this
.
props
.
navigation
const
navigation
=
this
.
props
.
navigation
return
(
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
ScrollView
>
<
ScrollView
style
=
{{
paddingTop
:
StatusBar
.
currentHeight
}}
>
<
View
style
=
{{
flex
:
1
,
height
:
90
}}
>
<
View
style
=
{{
flex
:
1
,
height
:
90
}}
>
<
View
style
=
{{
alignSelf
:
'center'
}}
>
<
View
style
=
{{
alignSelf
:
'center'
}}
>
...
...
view/Home.js
View file @
5615f2d3
...
@@ -657,7 +657,7 @@ class Home extends React.Component {
...
@@ -657,7 +657,7 @@ class Home extends React.Component {
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
View
style
=
{{
justifyContent
:
'center'
,
flex
:
1
}}
>
<
View
style
=
{{
justifyContent
:
'center'
,
flex
:
1
}}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
onClickClaimCredit
()}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
handleuseBalance
()}
>
<
View
style
=
{{
height
:
40
,
borderRadius
:
10
,
backgroundColor
:
'#CFB368'
,
marginRight
:
20
,
marginLeft
:
20
,
justifyContent
:
'center'
}}
>
<
View
style
=
{{
height
:
40
,
borderRadius
:
10
,
backgroundColor
:
'#CFB368'
,
marginRight
:
20
,
marginLeft
:
20
,
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
14
}}
>
{
i18n
.
t
(
'usebalance'
)}
<
/Text
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
14
}}
>
{
i18n
.
t
(
'usebalance'
)}
<
/Text
>
<
/View
>
<
/View
>
...
...
view/OrderHistory.js
View file @
5615f2d3
import
React
from
'react'
;
import
React
from
'react'
;
import
{
View
,
Text
,
TextInput
,
StyleSheet
,
ScrollView
,
Alert
,
TouchableOpacity
,
ActivityIndicator
}
from
'react-native'
;
import
{
View
,
Text
,
TextInput
,
StyleSheet
,
ScrollView
,
Alert
,
TouchableOpacity
,
ActivityIndicator
,
StatusBar
}
from
'react-native'
;
import
{
Card
}
from
'react-native-shadow-cards'
import
{
Card
}
from
'react-native-shadow-cards'
import
{
connect
}
from
'react-redux'
;
import
{
connect
}
from
'react-redux'
;
import
Axios
from
'axios'
;
import
Axios
from
'axios'
;
...
@@ -85,6 +85,7 @@ class OrderHistory extends React.Component {
...
@@ -85,6 +85,7 @@ class OrderHistory extends React.Component {
// console.log(this.state.order_list)
// console.log(this.state.order_list)
return
(
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
StatusBar
backgroundColor
=
'#CFB368'
/>
<
View
style
=
{
styles
.
header
}
>
<
View
style
=
{
styles
.
header
}
>
<
Text
style
=
{{
color
:
'white'
,
textAlign
:
'center'
,
fontSize
:
20
,
fontFamily
:
'Gotham-Black'
}}
>
{
i18n
.
t
(
'orderhistory'
)}
<
/Text
>
<
Text
style
=
{{
color
:
'white'
,
textAlign
:
'center'
,
fontSize
:
20
,
fontFamily
:
'Gotham-Black'
}}
>
{
i18n
.
t
(
'orderhistory'
)}
<
/Text
>
<
/View
>
<
/View
>
...
@@ -133,6 +134,7 @@ const styles = StyleSheet.create({
...
@@ -133,6 +134,7 @@ const styles = StyleSheet.create({
},
},
header
:
{
header
:
{
flex
:
0.1
,
flex
:
0.1
,
paddingTop
:
StatusBar
.
currentHeight
,
backgroundColor
:
'#ccb46c'
,
backgroundColor
:
'#ccb46c'
,
justifyContent
:
'center'
justifyContent
:
'center'
},
},
...
...
view/RewardsList.js
View file @
5615f2d3
import
React
from
'react'
;
import
React
from
'react'
;
import
{
View
,
Text
,
Image
,
StyleSheet
,
ScrollView
,
Alert
,
TouchableOpacity
,
ActivityIndicator
}
from
'react-native'
;
import
{
View
,
Text
,
Image
,
StyleSheet
,
ScrollView
,
Alert
,
TouchableOpacity
,
ActivityIndicator
,
StatusBar
}
from
'react-native'
;
import
{
Card
}
from
'react-native-shadow-cards'
import
{
Card
}
from
'react-native-shadow-cards'
import
{
connect
}
from
'react-redux'
;
import
{
connect
}
from
'react-redux'
;
import
Axios
from
'axios'
;
import
Axios
from
'axios'
;
...
@@ -58,6 +58,7 @@ class RewardsList extends React.Component {
...
@@ -58,6 +58,7 @@ class RewardsList extends React.Component {
render
()
{
render
()
{
return
(
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
StatusBar
backgroundColor
=
'#CFB368'
/>
<
View
style
=
{
styles
.
header
}
>
<
View
style
=
{
styles
.
header
}
>
<
Text
style
=
{{
color
:
'white'
,
textAlign
:
'center'
,
fontSize
:
20
,
fontFamily
:
'Gotham-Black'
}}
>
{
i18n
.
t
(
'titlerewardhistory'
)}
<
/Text
>
<
Text
style
=
{{
color
:
'white'
,
textAlign
:
'center'
,
fontSize
:
20
,
fontFamily
:
'Gotham-Black'
}}
>
{
i18n
.
t
(
'titlerewardhistory'
)}
<
/Text
>
<
/View
>
<
/View
>
...
@@ -112,7 +113,7 @@ const styles = StyleSheet.create({
...
@@ -112,7 +113,7 @@ const styles = StyleSheet.create({
},
},
header
:
{
header
:
{
flex
:
0.1
,
flex
:
0.1
,
marginBottom
:
5
,
paddingTop
:
StatusBar
.
currentHeight
,
backgroundColor
:
'#CFB368'
,
backgroundColor
:
'#CFB368'
,
justifyContent
:
'center'
justifyContent
:
'center'
},
},
...
...
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