From 3b2538736d8edfbade731b8b6da16d6b88718208 Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Mon, 29 Dec 2025 19:11:35 +0100 Subject: [PATCH] refactor: shorten query state keys for improved readability --- apps/infoalloggi/src/providers/RicercaProvider.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/infoalloggi/src/providers/RicercaProvider.tsx b/apps/infoalloggi/src/providers/RicercaProvider.tsx index 72bfae6..952c3b2 100644 --- a/apps/infoalloggi/src/providers/RicercaProvider.tsx +++ b/apps/infoalloggi/src/providers/RicercaProvider.tsx @@ -87,31 +87,31 @@ export const RicercaProvider: FC<{ const [isLoading, startTransition] = useTransition(); const [map, setMap] = useQueryState( - "map", + "m", parseAsBoolean.withDefault(false).withOptions({ startTransition }), ); const [tipo, setTipo] = useQueryState( - "tipo", + "t", parseAsString.withDefault("").withOptions({ startTransition }), ); const [comune, setComune] = useQueryState( - "com", + "c", parseAsString.withDefault("").withOptions({ startTransition }), ); const [consegna, setConsegna] = useQueryState( - "cons", + "f", parseAsArrayOf(parseAsInteger).withOptions({ startTransition }), ); const [minBudget, setMinBudget] = useQueryState( - "minb", + "bmin", parseAsInteger.withOptions({ startTransition }), ); const [maxBudget, setMaxBudget] = useQueryState( - "maxb", + "bmax", parseAsInteger.withOptions({ startTransition }), ); const [sort, setSort] = useQueryState( - "sort", + "s", parseAsStringLiteral(sortOptions) .withDefault("Recenti") .withOptions({ startTransition }),