mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 02:56:10 +00:00
fix(places): keep the hooks' helper types to their files
knip counts an exported type nothing imports; the tabs' row type and the hours' field type are only used where they are declared.
This commit is contained in:
@@ -82,5 +82,3 @@ export function usePlaceHours({ openingHours, onChange, suggestedHours }: PlaceH
|
||||
takeOver,
|
||||
};
|
||||
}
|
||||
|
||||
export type PlaceHoursField = ReturnType<typeof usePlaceHours>;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user