Skip to content

Commit

Permalink
map: fetches geometries from API
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgnlez committed Oct 28, 2024
1 parent 6a39d3d commit 591bfe2
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 310 deletions.
11 changes: 10 additions & 1 deletion client/src/app/(projects)/url-store.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { parseAsJson, parseAsStringLiteral, useQueryState } from "nuqs";
import {
parseAsJson,
parseAsString,
parseAsStringLiteral,
useQueryState,
} from "nuqs";
import { z } from "zod";

import {
Expand Down Expand Up @@ -29,6 +34,10 @@ export function useGlobalFilters() {
);
}

export function useSyncCountry() {
return useQueryState("country", parseAsString.withDefault(""));
}

export function useTableMode() {
return useQueryState(
"table",
Expand Down
Loading

0 comments on commit 591bfe2

Please sign in to comment.