mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 01:28:55 +00:00
fix(assistant): improve trip proposals and approvals
This commit is contained in:
@@ -25,6 +25,7 @@ interface PlaceTextTabsOptions {
|
||||
dayNotes: string | null;
|
||||
/** The day that visit is on, to name the tab after it ("Only day 3"). */
|
||||
dayNumber?: number | null;
|
||||
initialTab?: PlaceTextField;
|
||||
t: Translate;
|
||||
}
|
||||
|
||||
@@ -34,8 +35,15 @@ interface PlaceTextTabsOptions {
|
||||
* The one logic path behind the desktop card and the phone sheet; each draws its
|
||||
* own tabs and field over it.
|
||||
*/
|
||||
export function usePlaceTextTabs({ description, notes, dayNotes, dayNumber = null, t }: PlaceTextTabsOptions) {
|
||||
const [active, setActive] = useState<PlaceTextField>('description');
|
||||
export function usePlaceTextTabs({
|
||||
description,
|
||||
notes,
|
||||
dayNotes,
|
||||
dayNumber = null,
|
||||
t,
|
||||
initialTab = 'description',
|
||||
}: PlaceTextTabsOptions) {
|
||||
const [active, setActive] = useState<PlaceTextField>(initialTab);
|
||||
const tabs: PlaceTextTab[] = [
|
||||
{
|
||||
field: 'description',
|
||||
|
||||
Reference in New Issue
Block a user