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
4e0091d7
Commit
4e0091d7
authored
Jun 05, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change account
parent
06b84cb9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
47 deletions
+44
-47
Account.js
view/Account.js
+44
-47
No files found.
view/Account.js
View file @
4e0091d7
...
@@ -149,8 +149,6 @@ class Account extends React.Component {
...
@@ -149,8 +149,6 @@ class Account extends React.Component {
const
{
navigation
}
=
this
.
props
const
{
navigation
}
=
this
.
props
let
response
=
error
.
response
.
data
let
response
=
error
.
response
.
data
session
(
response
,
navigation
)
session
(
response
,
navigation
)
Alert
.
alert
(
response
.
msg
);
console
.
log
(
'ini error '
+
error
)
})
})
}
}
...
@@ -170,13 +168,12 @@ class Account extends React.Component {
...
@@ -170,13 +168,12 @@ class Account extends React.Component {
}
}
}
}
_useBalance
(){
_useBalance
()
{
if
(
this
.
props
.
in_payment
)
{
if
(
this
.
props
.
in_payment
)
{
this
.
props
.
navigation
.
navigate
(
'Redeem Code'
)
this
.
props
.
navigation
.
navigate
(
'Redeem Code'
)
}
else
{
}
else
{
this
.
props
.
navigation
.
navigate
(
'UseBalance'
)
this
.
props
.
navigation
.
navigate
(
'UseBalance'
)
}
}
}
}
...
@@ -236,8 +233,8 @@ class Account extends React.Component {
...
@@ -236,8 +233,8 @@ class Account extends React.Component {
<
View
style
=
{
styles
.
Card
}
>
<
View
style
=
{
styles
.
Card
}
>
<
View
style
=
{
styles
.
card
}
>
<
View
style
=
{
styles
.
card
}
>
<
View
style
=
{
styles
.
card
}
>
<
View
style
=
{
styles
.
card
}
>
<
Card
style
=
{{
padding
:
20
,
alignContent
:
'center'
}}
>
<
Card
style
=
{{
padding
:
20
,
alignContent
:
'center'
}}
>
<
View
style
=
{{
flexDirection
:
'row'
,
flex
:
1
,
paddingBottom
:
5
}}
>
<
View
style
=
{{
flexDirection
:
'row'
,
flex
:
1
,
paddingBottom
:
5
}}
>
<
View
style
=
{{
flex
:
0.5
}}
>
<
View
style
=
{{
flex
:
0.5
}}
>
<
Text
style
=
{{
fontSize
:
10
,
fontFamily
:
'Gotham-Light'
}}
>
YOUR
CARD
NUMBER
<
/Text
>
<
Text
style
=
{{
fontSize
:
10
,
fontFamily
:
'Gotham-Light'
}}
>
YOUR
CARD
NUMBER
<
/Text
>
<
/View
>
<
/View
>
...
@@ -257,8 +254,8 @@ class Account extends React.Component {
...
@@ -257,8 +254,8 @@ class Account extends React.Component {
{
/* <Text>{i18n.t('balance')}</Text> */
}
{
/* <Text>{i18n.t('balance')}</Text> */
}
<
Text
style
=
{{
fontSize
:
14
,
fontFamily
:
'Gotham-Light'
}}
>
BALANCE
<
/Text
>
<
Text
style
=
{{
fontSize
:
14
,
fontFamily
:
'Gotham-Light'
}}
>
BALANCE
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{{
flex
:
0.7
,
alignItems
:
'center'
}}
>
<
View
style
=
{{
flex
:
0.7
,
alignItems
:
'center'
}}
>
<
Text
style
=
{{
fontSize
:
14
,
fontFamily
:
'Gotham-Black'
,
color
:
'gray'
}}
>
IDR
{
this
.
state
.
balance
}
<
/Text
>
<
Text
style
=
{{
fontSize
:
14
,
fontFamily
:
'Gotham-Black'
,
color
:
'gray'
}}
>
IDR
{
this
.
state
.
balance
}
<
/Text
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
@@ -272,8 +269,8 @@ class Account extends React.Component {
...
@@ -272,8 +269,8 @@ class Account extends React.Component {
{
/* <Text>{i18n.t('balance')}</Text> */
}
{
/* <Text>{i18n.t('balance')}</Text> */
}
<
Text
style
=
{{
fontSize
:
14
,
fontFamily
:
'Gotham-Light'
}}
>
POINTS
<
/Text
>
<
Text
style
=
{{
fontSize
:
14
,
fontFamily
:
'Gotham-Light'
}}
>
POINTS
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{{
flex
:
0.7
,
alignItems
:
'center'
}}
>
<
View
style
=
{{
flex
:
0.7
,
alignItems
:
'center'
}}
>
<
Text
style
=
{{
fontSize
:
14
,
fontFamily
:
'Gotham-Black'
,
color
:
'gray'
}}
>
IDR
{
this
.
state
.
points
}
<
/Text
>
<
Text
style
=
{{
fontSize
:
14
,
fontFamily
:
'Gotham-Black'
,
color
:
'gray'
}}
>
IDR
{
this
.
state
.
points
}
<
/Text
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/Card
>
<
/Card
>
...
@@ -332,7 +329,7 @@ class Account extends React.Component {
...
@@ -332,7 +329,7 @@ class Account extends React.Component {
<
/Card
>
<
/Card
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
View
style
=
{{
width
:
5
}}
><
/View
>
<
View
style
=
{{
width
:
5
}}
><
/View
>
<
TouchableOpacity
style
=
{{
marginBottom
:
5
,
margin
:
4
}}
onPress
=
{()
=>
this
.
TransferBalance
()}
>
<
TouchableOpacity
style
=
{{
marginBottom
:
5
,
margin
:
4
}}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Renewal'
)}
>
<
Card
style
=
{{
height
:
120
,
width
:
155
}}
>
<
Card
style
=
{{
height
:
120
,
width
:
155
}}
>
<
View
style
=
{{
height
:
50
,
alignItems
:
'center'
,
padding
:
10
}}
>
<
View
style
=
{{
height
:
50
,
alignItems
:
'center'
,
padding
:
10
}}
>
...
...
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