mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Implemented expanded view in dialog.
This commit is contained in:
parent
0b4851125d
commit
4e25c07160
9 changed files with 136 additions and 104 deletions
|
|
@ -18,10 +18,6 @@ export function useNavigation() {
|
|||
return buildUrl(pathname, params);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
setQueryParams(Object.fromEntries(searchParams));
|
||||
}, [searchParams.toString()]);
|
||||
|
||||
const renderUrl = (path: string, params?: Record<string, string | number> | false) => {
|
||||
return buildUrl(
|
||||
teamId ? `/teams/${teamId}${path}` : path,
|
||||
|
|
@ -29,6 +25,10 @@ export function useNavigation() {
|
|||
);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
setQueryParams(Object.fromEntries(searchParams));
|
||||
}, [searchParams.toString()]);
|
||||
|
||||
return {
|
||||
router,
|
||||
pathname,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue