File tree 3 files changed +25
-1
lines changed
3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ export interface ISubscriptionResponse {
4
4
subscriptionId : string
5
5
authorID : string
6
6
username : string
7
+ amount : number
8
+ period : string
9
+ currency : string
7
10
tier : { name : string ; id : string }
8
11
createdAt : number
9
12
isActive : boolean
Original file line number Diff line number Diff line change 27
27
<div class =" bg-neutral ml-4 bg-opacity-25 rounded-3xl border border-neutral px-3 py-1 text-neutral text-xs" >
28
28
{{ s.tier.name }}
29
29
</div >
30
+ <div class =" flex justify-center items-end ml-4 text-neutral" >
31
+ <p class =" font-semibold text-lg" >{{ currency }}{{ s.amount }}</p >
32
+ <p >/</p >
33
+ <p >{{ s.period }}</p >
34
+ </div >
30
35
</div >
31
36
<button class =" focus:outline-none bg-gray1 dark:bg-gray5 rounded-full p-1" @click =" $emit(`close`)" >
32
37
<CloseIcon />
@@ -124,7 +129,7 @@ import DownloadIcon from '@/components/icons/Download.vue'
124
129
import BasicConfirmAlert from ' @/components/popups/BasicConfirmAlert.vue'
125
130
import { ActionType , ISubscriptionWithProfile , namespace as subscriptionNamespace } from ' @/store/subscriptions'
126
131
import { getSubscriptionTransactions , SubsTransaction } from ' @/backend/subscription'
127
- import { getBillingPortalUrl } from ' @/backend/payment'
132
+ import { getBillingPortalUrl , getCurrencySymbol } from ' @/backend/payment'
128
133
129
134
interface IData {
130
135
avatar: string | ArrayBuffer
@@ -147,6 +152,11 @@ export default Vue.extend({
147
152
showAlert: false ,
148
153
}
149
154
},
155
+ computed: {
156
+ currency(): string {
157
+ return getCurrencySymbol (this .s .currency )
158
+ },
159
+ },
150
160
async created() {
151
161
if (this .s .avatar ) {
152
162
this .avatar = await getPhotoFromIPFS (this .s .avatar )
Original file line number Diff line number Diff line change 32
32
>
33
33
<CrownIcon class =" text-neutral mr-2 w-5 h-5" /><span class =" truncate text-neutral" >{{ s.tier.name }}</span >
34
34
</div >
35
+ <div class =" flex justify-center items-end mb-4 text-neutral" >
36
+ <p class =" font-semibold text-lg" >{{ currency }}{{ s.amount }}</p >
37
+ <p >/</p >
38
+ <p >{{ s.period }}</p >
39
+ </div >
35
40
<p class =" text-gray5 dark:text-gray3 text-sm w-full mb-2" >
36
41
Subscribed since <span class =" font-semibold" >{{ $formatDate(s.createdAt, true) }}</span >
37
42
</p >
@@ -55,6 +60,7 @@ import CrownIcon from '@/components/icons/Crown.vue'
55
60
import MoreIcon from ' @/components/icons/More.vue'
56
61
import PenIcon from ' @/components/icons/Pencil.vue'
57
62
import { ISubscriptionWithProfile } from ' @/store/subscriptions'
63
+ import { getCurrencySymbol } from ' @/backend/payment'
58
64
59
65
interface IData {
60
66
avatar: string | ArrayBuffer
@@ -77,6 +83,11 @@ export default Vue.extend({
77
83
showPopup: false ,
78
84
}
79
85
},
86
+ computed: {
87
+ currency(): string {
88
+ return getCurrencySymbol (this .s .currency )
89
+ },
90
+ },
80
91
async created() {
81
92
if (this .s .avatar ) {
82
93
this .avatar = await getPhotoFromIPFS (this .s .avatar )
You can’t perform that action at this time.
0 commit comments