File tree 1 file changed +20
-4
lines changed
components/dashboard/src/components
1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -299,9 +299,18 @@ export default function UsageBasedBillingConfig({ attributionId }: Props) {
299
299
</ span >
300
300
</ div >
301
301
</ div >
302
- < button className = "mt-5 self-end" onClick = { ( ) => setShowBillingSetupModal ( true ) } >
303
- Upgrade Plan
304
- </ button >
302
+ < div className = "flex" >
303
+ { stripePortalUrl && (
304
+ < a className = "mt-5" href = { stripePortalUrl } >
305
+ < button className = "secondary" disabled = { ! stripePortalUrl } >
306
+ View Past Invoices ↗
307
+ </ button >
308
+ </ a >
309
+ ) }
310
+ < button className = "mt-5 self-end" onClick = { ( ) => setShowBillingSetupModal ( true ) } >
311
+ Upgrade Plan
312
+ </ button >
313
+ </ div >
305
314
</ div >
306
315
) }
307
316
{ showUpgradeUser && (
@@ -343,7 +352,14 @@ export default function UsageBasedBillingConfig({ attributionId }: Props) {
343
352
</ span >
344
353
</ div >
345
354
</ div >
346
- < div className = "mt-5 flex flex-col" >
355
+ < div className = "mt-5 flex" >
356
+ { stripePortalUrl && (
357
+ < a className = "mt-5" href = { stripePortalUrl } >
358
+ < button className = "secondary" disabled = { ! stripePortalUrl } >
359
+ View Past Invoices ↗
360
+ </ button >
361
+ </ a >
362
+ ) }
347
363
< button className = "self-end" onClick = { ( ) => setShowBillingSetupModal ( true ) } >
348
364
Upgrade Plan
349
365
</ button >
You can’t perform that action at this time.
0 commit comments