Files
TREK/client/src/components/Trips/TripMembersModal.tsx
T
Maurice bd58f17ec0 feat(trip-settings): edit the trip inside its settings, in one look across the areas and the trip form
Edit trip is an area of the settings dialog, beside People, Sharing and
Journal, instead of a second dialog. The side column names the areas only, the
dialog keeps one height, and every area uses the same cards, fields and
buttons; the trip form on its own takes the same head, cards and buttons. A
trip that loads quickly opens without the splash on the desktop too.
2026-11-13 12:40:16 +01:00

19 lines
746 B
TypeScript

import TripShareDialog, { type TripSettingsForm } from './TripShareDialog'
interface TripMembersModalProps {
isOpen: boolean
onClose: () => void
tripId: number
tripTitle: string
/** Called after the roster changes (guest/member added, renamed or removed) so the
* planner can refresh its members for Costs participants, Collab, etc. */
onMembersChanged?: () => void
/** The trip's form as the dialog's last area, for someone who may edit the trip (#2811). */
editTrip?: TripSettingsForm
}
/** Share: the trip's members, guests and links. The phone has its own sheet (MTripSettingsSheet) on the same hooks. */
export default function TripMembersModal(props: TripMembersModalProps) {
return <TripShareDialog {...props} />
}