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
1fccb9c7
Commit
1fccb9c7
authored
Jun 20, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
translate trans history
parent
361f4423
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
en.json
lib/en.json
+3
-1
id.json
lib/id.json
+3
-1
Auth.js
view/Auth.js
+1
-1
TransactionHistory.js
view/TransactionHistory.js
+3
-2
No files found.
lib/en.json
View file @
1fccb9c7
...
...
@@ -128,5 +128,7 @@
"youRated"
:
"You Rated"
,
"rateOrder"
:
"Rate Order"
,
"headerEmailConfirm"
:
"EMAIL CONFIRMATION"
,
"headerRedeemCode"
:
"REDEEM CODE"
"headerRedeemCode"
:
"REDEEM CODE"
,
"headerTransHistory"
:
"TRANSACTION HISTORY"
,
"noTransHistoryData"
:
"No Transaction History"
}
\ No newline at end of file
lib/id.json
View file @
1fccb9c7
...
...
@@ -130,5 +130,7 @@
"youRated"
:
"You Rated@"
,
"rateOrder"
:
"Rate Order@"
,
"headerEmailConfirm"
:
"KONFIRMASI EMAIL"
,
"headerRedeemCode"
:
"REDEEM CODE@"
"headerRedeemCode"
:
"REDEEM CODE@"
,
"headerTransHistory"
:
"RIWAYAT TRANSAKSI"
,
"noTransHistoryData"
:
"Tidak ada riwayat transaksi"
}
\ No newline at end of file
view/Auth.js
View file @
1fccb9c7
...
...
@@ -681,7 +681,7 @@ class Auth extends React.Component {
color
:
'white'
,
fontSize
:
20
,
},
title
:
'TRANSACTION HISTORY'
title
:
i18n
.
t
(
'headerTransHistory'
)
}}
/
>
<
Stack
.
Screen
name
=
"Transaction Detail"
component
=
{
TransactionDetail
}
options
=
{{
...
...
view/TransactionHistory.js
View file @
1fccb9c7
...
...
@@ -6,6 +6,7 @@ import Axios from 'axios';
import
moment
from
'moment'
import
MyStatusBar
from
'./MyStatusBar'
;
import
NumberFormat
from
'react-number-format'
;
import
i18n
from
'i18n-js'
;
class
TransactionHistory
extends
React
.
Component
{
constructor
(
props
)
{
...
...
@@ -117,7 +118,7 @@ class TransactionHistory extends React.Component {
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
12
,
margin
:
2
}}
>
{
i
.
trans_type_display
}
<
/Text
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Order Detail'
,
{
idTrans
:
i
.
id
})}
>
<
View
style
=
{{
height
:
40
,
borderRadius
:
10
,
backgroundColor
:
'#CFB368'
,
justifyContent
:
'center'
,
marginVertical
:
5
}}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
fontSize
:
12
,
textAlign
:
'center'
,
paddingHorizontal
:
5
}}
>
Lihat
Detail
Pemesanan
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
fontSize
:
12
,
textAlign
:
'center'
,
paddingHorizontal
:
5
}}
>
{
i18n
.
t
(
'seeOrderDetail'
)}
<
/Text
>
<
/View
>
<
/TouchableOpacity
>
<
/View
>
...
...
@@ -212,7 +213,7 @@ class TransactionHistory extends React.Component {
))
)
:
(
<
View
style
=
{{
justifyContent
:
'center'
,
alignItems
:
'center'
,
height
:
100
}}
>
<
Text
style
=
{{
textAlign
:
'left'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'grey'
}}
>
No
Transaction
History
<
/Text
>
<
Text
style
=
{{
textAlign
:
'left'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'grey'
}}
>
{
i18n
.
t
(
'noTransHistoryData'
)}
<
/Text
>
<
/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