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
1d981289
Commit
1d981289
authored
Sep 02, 2020
by
William Goszal
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renewal, tampilkan msg apabila balance tidak cukup
parent
860757d2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
en.json
lib/en.json
+2
-1
id.json
lib/id.json
+2
-1
Renewal.js
view/Renewal.js
+8
-6
No files found.
lib/en.json
View file @
1d981289
...
@@ -234,5 +234,6 @@
...
@@ -234,5 +234,6 @@
"alertVoucher"
:
"Voucher cannot be used with point"
,
"alertVoucher"
:
"Voucher cannot be used with point"
,
"alertemailblank"
:
"Email cannot be empty"
,
"alertemailblank"
:
"Email cannot be empty"
,
"waCallCenter"
:
"Hello, I have a problem with trans no"
"waCallCenter"
:
"Hello, I have a problem with trans no"
,
"renewal_notEnoughBalance"
:
"You don't have enough balance"
}
}
\ No newline at end of file
lib/id.json
View file @
1d981289
...
@@ -234,5 +234,6 @@
...
@@ -234,5 +234,6 @@
"alertVoucher"
:
"Voucher tidak bisa digunakan dengan point"
,
"alertVoucher"
:
"Voucher tidak bisa digunakan dengan point"
,
"alertemailblank"
:
"Email tidak boleh kosong"
,
"alertemailblank"
:
"Email tidak boleh kosong"
,
"waCallCenter"
:
"Halo, saya ada masalah dengan trans no"
"waCallCenter"
:
"Halo, saya ada masalah dengan trans no"
,
"renewal_notEnoughBalance"
:
"Saldo anda tidak mencukupi."
}
}
\ No newline at end of file
view/Renewal.js
View file @
1d981289
...
@@ -193,16 +193,18 @@ class Renewal extends React.Component {
...
@@ -193,16 +193,18 @@ class Renewal extends React.Component {
<
Text
style
=
{{
textAlign
:
'center'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Black'
,
color
:
'gray'
}}
>
{
this
.
state
.
renew_until
}
<
/Text
>
<
Text
style
=
{{
textAlign
:
'center'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Black'
,
color
:
'gray'
}}
>
{
this
.
state
.
renew_until
}
<
/Text
>
<
/View
>
<
/View
>
<
/View>
<
/View>
{
/* <View style={styles.btn_renewal}>
<Button title="Renew" onPress={() => this._renewal()}></Button>
</View> */
}
{
/* cek tombol berdasarkan state renew_button */
}
{
/* cek tombol berdasarkan state renew_button */
}
{
this
.
state
.
hide_renew_button
==
true
?
(
null
)
:
<
TouchableOpacity
onPress
=
{()
=>
this
.
_handleRenewal
()}
>
{
this
.
state
.
hide_renew_button
==
true
?
<
View
style
=
{{
marginTop
:
30
}}
>
<
Text
style
=
{{
color
:
'red'
,
fontSize
:
16
,
textAlign
:
'center'
,
fontFamily
:
'Gotham-Black'
}}
>
{
i18n
.
t
(
'renewal_notEnoughBalance'
)}
<
/Text
>
<
/View
>
:
<
TouchableOpacity
onPress
=
{()
=>
this
.
_handleRenewal
()}
>
<
View
style
=
{
styles
.
button
}
>
<
View
style
=
{
styles
.
button
}
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
16
,
textAlign
:
'center'
,
fontFamily
:
'Gotham-Black'
}}
>
{
i18n
.
t
(
'renew'
)}
<
/Text
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
16
,
textAlign
:
'center'
,
fontFamily
:
'Gotham-Black'
}}
>
{
i18n
.
t
(
'renew'
)}
<
/Text
>
<
/View
>
<
/View
>
<
/TouchableOpacity>
}
<
/TouchableOpacity
>
}
<
/View
>
<
/View
>
)
)
}
}
...
...
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