feat: add country selection during onboarding and implement payment management features
- Introduced CountryStep component for selecting the country during onboarding, affecting payment currency. - Updated FirstGroupStep to include country information. - Enhanced PaymentsProvider to manage payment states and renewals. - Created PaymentRow component for displaying individual payment details. - Implemented PaymentsView for listing and filtering payments by group and status. - Added API endpoints for fetching and creating payments, including batch processing. - Defined payment schemas for validation and data handling. - Updated GroupHeader and GroupDetailView to include charging functionality for group members.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { useNavigate } from '@tanstack/react-router'
|
||||
import { Loader2 } from 'lucide-react'
|
||||
import { useState } from 'react'
|
||||
import { Button } from '../../../components/ui'
|
||||
import { ChargeMembersModal } from './ChargeMembersModal'
|
||||
import { GroupHeader } from './GroupHeader'
|
||||
import { GroupInfoCard } from './GroupInfoCard'
|
||||
import { InviteLinkModal } from './InviteLinkModal'
|
||||
@@ -22,13 +24,14 @@ export function GroupDetailView() {
|
||||
isSubmittingRemoval,
|
||||
} = useGroupDetail()
|
||||
const navigate = useNavigate()
|
||||
const [isChargeModalOpen, setIsChargeModalOpen] = useState(false)
|
||||
|
||||
return (
|
||||
<section className="animate-fade-in space-y-5 sm:space-y-6">
|
||||
{/* The large title always renders, even while loading: it is what gives
|
||||
the immersive bar its height and stops the layout from jumping when
|
||||
the data arrives. */}
|
||||
<GroupHeader />
|
||||
<GroupHeader onCharge={() => setIsChargeModalOpen(true)} />
|
||||
|
||||
{groupQueryPending ? (
|
||||
<div className="flex items-center justify-center py-20">
|
||||
@@ -66,6 +69,10 @@ export function GroupDetailView() {
|
||||
/>
|
||||
<WaitlistEntryDetailModal />
|
||||
<PreRegistrationDetailModal />
|
||||
<ChargeMembersModal
|
||||
isOpen={isChargeModalOpen}
|
||||
onClose={() => setIsChargeModalOpen(false)}
|
||||
/>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user