mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 23:50:08 +00:00
fix(notifications): drop a tab the planner lacks from the URL, link booking mails to the reservations tab, open the chat on the phone
This commit is contained in:
@@ -340,6 +340,13 @@ export default function MTripShell({
|
||||
if (mode === 'browse') setMode('go')
|
||||
}
|
||||
|
||||
// A notification link opens its tab the way the dock does, and a message one the chat.
|
||||
useEffect(() => {
|
||||
if (!planner.tabLink) return
|
||||
setMode(m => (m === 'browse' ? 'go' : m))
|
||||
if (planner.tabLink.tab === 'collab') setCollabTab('chat')
|
||||
}, [planner.tabLink])
|
||||
|
||||
const setTravelMode = (next: MTripMode) => {
|
||||
setBrowseFromEdit(next === 'browse' && mode === 'edit')
|
||||
setMode(next)
|
||||
|
||||
Reference in New Issue
Block a user