fix: update paramsMapping keys for clarity and consistency
This commit is contained in:
parent
ab3b109652
commit
6399bda689
1 changed files with 7 additions and 7 deletions
|
|
@ -31,13 +31,13 @@ type RicercaUrlParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const paramsMapping = {
|
export const paramsMapping = {
|
||||||
map: "m",
|
map: "map",
|
||||||
tipo: "t",
|
tipo: "tipo",
|
||||||
comune: "c",
|
comune: "comune",
|
||||||
consegna: "f",
|
consegna: "consegna",
|
||||||
minBudget: "bmin",
|
minBudget: "budget_min",
|
||||||
maxBudget: "bmax",
|
maxBudget: "budget_max",
|
||||||
sort: "s",
|
sort: "sort",
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const buildRicercaUrl = (params: Partial<RicercaUrlParams>): string => {
|
export const buildRicercaUrl = (params: Partial<RicercaUrlParams>): string => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue