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
5944ee5c
Commit
5944ee5c
authored
Aug 21, 2020
by
William Goszal
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- benerin grid tombol actions di halaman account
- hide tombol upgrade premium & transfer balance
parent
414a3c10
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
83 additions
and
59 deletions
+83
-59
Account.js
view/Account.js
+83
-59
No files found.
view/Account.js
View file @
5944ee5c
...
...
@@ -436,7 +436,8 @@ class Account extends React.Component {
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
fontSize
:
16
,
textAlign
:
'center'
}}
>
{
i18n
.
t
(
'topup'
)}
<
/Text
>
<
/TouchableOpacity
>
<
View
style
=
{{
padding
:
10
,
height
:
250
,
top
:
10
,
margin
:
0
}}
>
{
/* Member Card */
}
<
View
style
=
{{
padding
:
10
,
height
:
250
,
top
:
10
,
marginBottom
:
20
}}
>
<
ImageBackground
style
=
{{
width
:
'100%'
,
height
:
'100%'
,
padding
:
0
,
margin
:
0
}}
resizeMode
=
'stretch'
source
=
{
this
.
state
.
img_card
?
{
uri
:
this
.
state
.
img_card
}
:
null
}
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
margin
:
15
,
fontSize
:
14
,
color
:
'#c9af6d'
,
top
:
170
}}
>
...
...
@@ -446,83 +447,72 @@ class Account extends React.Component {
<
/ImageBackground
>
<
/View
>
<
View
style
=
{{
marginLeft
:
10
,
marginRight
:
10
,
padding
:
5
}}
>
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
,
justifyContent
:
'center'
,
margin
:
5
}}
>
<
TouchableOpacity
style
=
{{
marginBottom
:
5
,
margin
:
3
}}
onPress
=
{()
=>
this
.
TransferBalance
()}
>
<
Card
style
=
{{
height
:
120
,
width
:
155
}}
>
<
View
style
=
{{
height
:
50
,
alignItems
:
'center'
,
padding
:
10
,
flex
:
1
}}
>
<
Image
style
=
{{
height
:
50
,
width
:
50
,
justifyContent
:
'center'
}}
source
=
{
require
(
'../assets/icon/4.png'
)}
/
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
textAlign
:
'center'
,
top
:
5
,
fontSize
:
14
,
color
:
'#838383'
}}
>
{
i18n
.
t
(
'Transferbalance'
)}
<
/Text
>
<
/View
>
{
/* Actions Grid */
}
<
View
style
=
{
styles
.
action_grid_container
}
>
{
/* Action Transfer Balance */
}
<
View
style
=
{
styles
.
action_grid_col
}
display
=
"none"
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
TransferBalance
()}
>
<
Card
style
=
{
styles
.
action_grid_card
}
>
<
Image
style
=
{
styles
.
action_grid_icon
}
source
=
{
require
(
'../assets/icon/4.png'
)}
/
>
<
Text
style
=
{
styles
.
action_grid_text
}
>
{
i18n
.
t
(
'Transferbalance'
)}
<
/Text
>
<
/Card
>
<
/TouchableOpacity
>
<
View
style
=
{{
width
:
5
}}
><
/View
>
<
TouchableOpacity
style
=
{{
marginBottom
:
5
,
margin
:
3
}}
onPress
=
{()
=>
this
.
handleuseBalance
()}
>
<
Card
style
=
{{
height
:
120
,
width
:
155
}}
>
<
View
style
=
{{
height
:
50
,
alignItems
:
'center'
,
padding
:
10
,
flex
:
1
}}
>
<
Image
style
=
{{
height
:
50
,
width
:
50
,
justifyContent
:
'center'
}}
source
=
{
require
(
'../assets/icon/2.png'
)}
/
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
textAlign
:
'center'
,
top
:
5
,
fontSize
:
14
,
color
:
'#838383'
}}
>
{
i18n
.
t
(
'Usebalancepoint'
)}
<
/Text
>
<
/View
>
{
/* Action Use Balance */
}
<
View
style
=
{
styles
.
action_grid_col
}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
handleuseBalance
()}
>
<
Card
style
=
{
styles
.
action_grid_card
}
>
<
Image
style
=
{
styles
.
action_grid_icon
}
source
=
{
require
(
'../assets/icon/2.png'
)}
/
>
<
Text
style
=
{
styles
.
action_grid_text
}
>
{
i18n
.
t
(
'Usebalancepoint'
)}
<
/Text
>
<
/Card
>
<
/TouchableOpacity
>
<
/View
>
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
,
marginBottom
:
10
,
justifyContent
:
'center'
}}
>
<
TouchableOpacity
style
=
{{
marginBottom
:
5
,
margin
:
4
}}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Transaction History'
)}
>
<
Card
style
=
{{
height
:
120
,
width
:
155
}}
>
<
View
style
=
{{
height
:
50
,
alignItems
:
'center'
,
padding
:
10
,
flex
:
1
}}
>
<
Image
style
=
{{
height
:
50
,
width
:
50
,
justifyContent
:
'center'
}}
source
=
{
require
(
'../assets/icon/1.png'
)}
/
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
flexDirection
:
'row'
,
textAlign
:
'center'
,
flexWrap
:
'wrap'
,
margin
:
5
,
color
:
'#838383'
}}
>
{
i18n
.
t
(
'Transactionhistory'
)}
<
/Text
>
<
/View
>
{
/* Action Transaction History */
}
<
View
style
=
{
styles
.
action_grid_col
}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Transaction History'
)}
>
<
Card
style
=
{
styles
.
action_grid_card
}
>
<
Image
style
=
{
styles
.
action_grid_icon
}
source
=
{
require
(
'../assets/icon/1.png'
)}
/
>
<
Text
style
=
{
styles
.
action_grid_text
}
>
{
i18n
.
t
(
'Transactionhistory'
)}
<
/Text
>
<
/Card
>
<
/TouchableOpacity
>
<
View
style
=
{{
width
:
5
}}
><
/View
>
<
TouchableOpacity
style
=
{{
marginBottom
:
5
,
margin
:
4
}}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Renewal'
)}
>
<
Card
style
=
{{
height
:
120
,
width
:
155
}}
>
<
View
style
=
{{
height
:
50
,
alignItems
:
'center'
,
padding
:
10
,
flex
:
1
}}
>
<
Image
style
=
{{
height
:
50
,
width
:
50
,
justifyContent
:
'center'
}}
source
=
{
require
(
'../assets/icon/3.png'
)}
/
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
textAlign
:
'center'
,
top
:
5
,
fontSize
:
14
,
margin
:
5
,
color
:
'#838383'
}}
>
{
i18n
.
t
(
'Renewal'
)}
<
/Text
>
<
/View>
{
/* Action Renewal */
}
<
View
style
=
{
styles
.
action_grid_col
}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Renewal'
)}
>
<
Card
style
=
{
styles
.
action_grid_card
}
>
<
Image
style
=
{
styles
.
action_grid_icon
}
source
=
{
require
(
'../assets/icon/3.png'
)}
/
>
<
Text
style
=
{
styles
.
action_grid_text
}
>
{
i18n
.
t
(
'Renewal'
)}
<
/Text
>
<
/Card
>
<
/TouchableOpacity
>
<
/View
>
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
,
justifyContent
:
'center'
,
display
:
'none'
}}
>
{
this
.
state
.
premium
===
false
?
(
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Upgrade Premium'
)}
style
=
{{
marginBottom
:
20
,
marginRight
:
5
,
marginLeft
:
5
}}
>
<
Card
style
=
{{
width
:
200
,
paddingHorizontal
:
10
,
paddingTop
:
20
,
paddingBottom
:
20
}}
>
<
View
style
=
{{
flex
:
1
,
alignItems
:
'center'
}}
>
<
MaterialIcons
name
=
"autorenew"
size
=
{
30
}
color
=
"gray"
style
=
{{
marginBottom
:
10
}}
/
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
textAlign
:
'center'
,
fontSize
:
14
,
color
:
'#838383'
}}
>
{
i18n
.
t
(
'upgradePremium'
)}
<
/Text
>
<
/View
>
{
/* Action Upgrade Premium */
}
<
View
style
=
{
styles
.
action_grid_col
}
display
=
"none"
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Upgrade Premium'
)}
>
<
Card
style
=
{
styles
.
action_grid_card
}
>
{
/* <MaterialIcons name="autorenew" color="gray" size={50} style={styles.action_grid_icon} /> */
}
<
Image
style
=
{
styles
.
action_grid_icon
}
source
=
{
require
(
'../assets/icon/3.png'
)}
/
>
<
Text
style
=
{
styles
.
action_grid_text
}
>
{
i18n
.
t
(
'upgradePremium'
)}
<
/Text
>
<
/Card
>
<
/TouchableOpacity
>
)
:
(
null
)}
<
/View
>
<
/View
>
{
/* Actions Grid - end */
}
{
/* Button Logout */
}
<
View
style
=
{{
flex
:
1
}}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
logout
()}
>
<
View
style
=
{{
height
:
40
,
borderRadius
:
10
,
backgroundColor
:
'#CFB368'
,
justifyContent
:
'center'
,
marginLeft
:
20
,
marginRight
:
20
,
marginBottom
:
20
,
padding
:
5
,
bottom
:
5
,
top
:
1
}}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
fontSize
:
16
,
textAlign
:
'center'
}}
>
{
i18n
.
t
(
'logout'
)}
<
/Text
>
<
/View
>
<
/TouchableOpacity>
<
/View
>
<
/View
>
)
}
...
...
@@ -547,6 +537,40 @@ Account.navigationOptions = {
};
const
styles
=
StyleSheet
.
create
({
action_grid_container
:
{
flex
:
1
,
flexDirection
:
'row'
,
flexWrap
:
'wrap'
,
marginLeft
:
10
,
marginRight
:
10
},
action_grid_col
:
{
flexBasis
:
'50%'
,
paddingLeft
:
10
,
paddingRight
:
10
,
marginBottom
:
20
},
action_grid_col_full
:
{
flexBasis
:
'100%'
,
paddingLeft
:
10
,
paddingRight
:
10
,
marginBottom
:
20
},
action_grid_card
:{
height
:
120
,
width
:
"100%"
,
alignItems
:
'center'
,
flex
:
1
,
flexDirection
:
'column'
,
justifyContent
:
'flex-start'
,
padding
:
15
,
},
action_grid_icon
:{
height
:
50
,
width
:
50
,
justifyContent
:
'center'
},
action_grid_text
:{
fontFamily
:
'Gotham-Black'
,
textAlign
:
'center'
,
top
:
5
,
fontSize
:
14
,
color
:
'#838383'
},
container
:
{
flex
:
1
,
...
...
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