Add board selector to top navigation

This commit is contained in:
Mike Cao committed 2026-02-12 17:26:52 -08:00
1 parent a1f3ad89f6
commit e2b391af28
5 files changed
+128 -6

No files matched your search

+2
View File
@@ -10,6 +10,7 @@ export function useNavigation() {
const [, websiteId] = pathname.match(/\/websites\/([a-f0-9-]+)/) || [];
const [, linkId] = pathname.match(/\/links\/([a-f0-9-]+)/) || [];
const [, pixelId] = pathname.match(/\/pixels\/([a-f0-9-]+)/) || [];
const [, boardId] = pathname.match(/\/boards\/([a-f0-9-]+)/) || [];
const [queryParams, setQueryParams] = useState(Object.fromEntries(searchParams));
const updateParams = (params?: Record<string, string | number>) => {
@@ -40,6 +41,7 @@ export function useNavigation() {
websiteId,
linkId,
pixelId,
boardId,
updateParams,
replaceParams,
renderUrl,