mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 18:04:18 +00:00
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.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import TripShareDialog from './TripShareDialog'
|
||||
import TripShareDialog, { type TripSettingsForm } from './TripShareDialog'
|
||||
|
||||
interface TripMembersModalProps {
|
||||
isOpen: boolean
|
||||
@@ -8,8 +8,8 @@ interface TripMembersModalProps {
|
||||
/** 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
|
||||
/** Opens the trip's form from the dialog, for someone who may edit the trip (#2811). */
|
||||
onEditTrip?: () => 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. */
|
||||
|
||||
Reference in New Issue
Block a user