Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(places): keep the hooks' helper types to their files

Maurice5ecf3001afcd
diff --git a/client/src/components/Planner/usePlaceHours.ts b/client/src/components/Planner/usePlaceHours.ts
index 430f807e9..3f5af5092 100644
--- a/client/src/components/Planner/usePlaceHours.ts
+++ b/client/src/components/Planner/usePlaceHours.ts
@@ -82,5 +82,3 @@ export function usePlaceHours({ openingHours, onChange, suggestedHours }: PlaceH
takeOver,
};
}
-
-export type PlaceHoursField = ReturnType<typeof usePlaceHours>;
diff --git a/client/src/components/Planner/usePlaceTextTabs.ts b/client/src/components/Planner/usePlaceTextTabs.ts
index f9936ae04..68f25aba1 100644
--- a/client/src/components/Planner/usePlaceTextTabs.ts
+++ b/client/src/components/Planner/usePlaceTextTabs.ts
@@ -4,7 +4,7 @@ type Translate = (key: string, params?: Record<string, string | number>) => stri
export type PlaceTextField = 'description' | 'notes' | 'assignment_notes';
-export interface PlaceTextTab {
+interface PlaceTextTab {
field: PlaceTextField;
/** The tab's own short name. */
label: string;