Disable cancel button when creating org (#21653)

This commit is contained in:
Joshen Lim authored and GitHub committed 2024-02-29 05:48:54 +00:00
1 parent a6379bc15b
commit edcc89ce81
1 file changed
+6 -2
@@ -197,7 +197,11 @@ const NewOrgForm = ({ onPaymentMethodReset }: NewOrgFormProps) => {
}
footer={
<div key="panel-footer" className="flex w-full items-center justify-between">
<Button type="default" onClick={() => router.push('/projects')}>
<Button
type="default"
disabled={newOrgLoading}
onClick={() => router.push('/projects')}
>
Cancel
</Button>
<div className="flex items-center space-x-3">
@@ -216,7 +220,7 @@ const NewOrgForm = ({ onPaymentMethodReset }: NewOrgFormProps) => {
</div>
}
>
<Panel.Content className="pt-0">
<Panel.Content>
<p className="text-sm">This is your organization within Supabase.</p>
<p className="text-sm text-foreground-light">
For example, you can use the name of your company or department.