settings: move dues config (Stripe + payment links) into its own Dues tab

The Stripe recurring-dues panel and the external payment-links panel were
rendered below the settings tab bar (outside SettingsClient), so they
floated under every tab. Add a Dues tab (Space / Integrations / Dues /
Webhooks) and render both panels there as standard tab cards. UI only.
This commit is contained in:
Moheeb Zara
2026-05-20 00:11:06 -07:00
parent be756035d5
commit 49d8805b4c
5 changed files with 26 additions and 16 deletions
+6 -12
View File
@@ -1,7 +1,5 @@
import { createClient } from '@/lib/supabase/server'
import SettingsClient from './settings-client'
import { StripeBillingPanel } from '@/components/settings/stripe-billing-panel'
import { DuesPaymentMethodsPanel } from '@/components/settings/dues-payment-methods-panel'
import { redirect } from 'next/navigation'
export default async function SettingsPage() {
@@ -27,15 +25,11 @@ export default async function SettingsPage() {
.from('integrations').select('*').eq('space_id', member.space_id)
return (
<>
<SettingsClient
space={space}
isAdmin={isAdmin}
integrations={integrations ?? []}
currentRole={member.role}
/>
<StripeBillingPanel spaceId={member.space_id} />
<DuesPaymentMethodsPanel />
</>
<SettingsClient
space={space}
isAdmin={isAdmin}
integrations={integrations ?? []}
currentRole={member.role}
/>
)
}