feat: add booking id & booking link columns to /insights/routing (#19697)
* feat: add booking id & booking link columns to /insights/routing * update style * update i18n * update i18n keys * update host * useCopy instead of raw navigator.clipboard
This commit is contained in:
1 parent
0565e23818
commit
d2bc81758c
4 files changed
+93
-18
No files matched your search
@@ -30,18 +30,22 @@ export type DataTableContextType = {
|
||||
|
||||
export const DataTableContext = createContext<DataTableContextType | null>(null);
|
||||
|
||||
const DEFAULT_ACTIVE_FILTERS: ActiveFilter[] = [];
|
||||
const DEFAULT_SORTING: SortingState = [];
|
||||
const DEFAULT_COLUMN_VISIBILITY: VisibilityState = {};
|
||||
|
||||
export function DataTableProvider({ children }: { children: React.ReactNode }) {
|
||||
const [activeFilters, setActiveFilters] = useQueryState(
|
||||
"activeFilters",
|
||||
parseAsArrayOf(parseAsJson(ZActiveFilter.parse)).withDefault([])
|
||||
parseAsArrayOf(parseAsJson(ZActiveFilter.parse)).withDefault(DEFAULT_ACTIVE_FILTERS)
|
||||
);
|
||||
const [sorting, setSorting] = useQueryState(
|
||||
"sorting",
|
||||
parseAsArrayOf(parseAsJson(ZSorting.parse)).withDefault([])
|
||||
parseAsArrayOf(parseAsJson(ZSorting.parse)).withDefault(DEFAULT_SORTING)
|
||||
);
|
||||
const [columnVisibility, setColumnVisibility] = useQueryState<VisibilityState>(
|
||||
"cols",
|
||||
parseAsJson(ZColumnVisibility.parse).withDefault({})
|
||||
parseAsJson(ZColumnVisibility.parse).withDefault(DEFAULT_COLUMN_VISIBILITY)
|
||||
);
|
||||
|
||||
const clearAll = useCallback(
|
||||
|
||||
Reference in new issue
Block a user