mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 03:50:30 +00:00
bd58f17ec0
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.
19 lines
746 B
TypeScript
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} />
|
|
}
|