File tree 2 files changed +21
-19
lines changed
packages/web/src/app/[domain]/settings/billing
2 files changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ export function ChangeBillingEmailCard({ currentUserRole }: ChangeBillingEmailCa
83
83
< FormItem >
84
84
< FormLabel > Email address</ FormLabel >
85
85
< FormControl >
86
- < Input
87
- placeholder = { billingEmail }
86
+ < Input
87
+ placeholder = { billingEmail }
88
88
{ ...field }
89
89
disabled = { currentUserRole !== OrgRole . OWNER }
90
90
title = { currentUserRole !== OrgRole . OWNER ? "Only organization owners can change the billing email" : undefined }
@@ -94,14 +94,15 @@ export function ChangeBillingEmailCard({ currentUserRole }: ChangeBillingEmailCa
94
94
</ FormItem >
95
95
) }
96
96
/>
97
- < Button
98
- type = "submit"
99
- className = "w-full"
100
- disabled = { isLoading || currentUserRole !== OrgRole . OWNER }
101
- title = { currentUserRole !== OrgRole . OWNER ? "Only organization owners can change the billing email" : undefined }
102
- >
103
- { isLoading ? "Updating..." : "Update Billing Email" }
104
- </ Button >
97
+ < div className = "flex justify-end" >
98
+ < Button
99
+ type = "submit"
100
+ disabled = { isLoading || currentUserRole !== OrgRole . OWNER }
101
+ title = { currentUserRole !== OrgRole . OWNER ? "Only organization owners can change the billing email" : undefined }
102
+ >
103
+ { isLoading ? "Updating..." : "Update Billing Email" }
104
+ </ Button >
105
+ </ div >
105
106
</ form >
106
107
</ Form >
107
108
</ CardContent >
Original file line number Diff line number Diff line change @@ -31,13 +31,14 @@ export function ManageSubscriptionButton({ currentUserRole }: { currentUserRole:
31
31
32
32
const isOwner = currentUserRole === OrgRole . OWNER
33
33
return (
34
- < Button
35
- className = "w-full"
36
- onClick = { redirectToCustomerPortal }
37
- disabled = { isLoading || ! isOwner }
38
- title = { ! isOwner ? "Only the owner of the org can manage the subscription" : undefined }
39
- >
40
- { isLoading ? "Creating customer portal..." : "Manage Subscription" }
41
- </ Button >
42
- )
34
+ < div className = "flex w-full justify-end" >
35
+ < Button
36
+ onClick = { redirectToCustomerPortal }
37
+ disabled = { isLoading || ! isOwner }
38
+ title = { ! isOwner ? "Only the owner of the org can manage the subscription" : undefined }
39
+ >
40
+ { isLoading ? "Creating customer portal..." : "Manage Subscription" }
41
+ </ Button >
42
+ </ div >
43
+ )
43
44
}
You can’t perform that action at this time.
0 commit comments