Add temporary public utility-only site
This commit is contained in:
parent
4884b5d367
commit
2a9f4df15f
6 changed files with 193 additions and 259 deletions
|
|
@ -6,7 +6,7 @@ import { useSearchParams, useRouter } from "next/navigation";
|
|||
import { cn } from "@/lib/utils";
|
||||
import { TOOLKIT_TABS } from "@/components/utilities/laser-toolkit/registry";
|
||||
|
||||
export default function LaserToolkitSwitcher() {
|
||||
export default function LaserToolkitSwitcher({ basePath = "/portal/utilities" }: { basePath?: string }) {
|
||||
const sp = useSearchParams();
|
||||
const router = useRouter();
|
||||
|
||||
|
|
@ -24,7 +24,7 @@ export default function LaserToolkitSwitcher() {
|
|||
function setTab(k: string) {
|
||||
const q = new URLSearchParams(sp.toString());
|
||||
q.set("lt", k);
|
||||
router.replace(`/portal/utilities?${q.toString()}`, { scroll: false });
|
||||
router.replace(`${basePath}?${q.toString()}`, { scroll: false });
|
||||
}
|
||||
|
||||
if (!active) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue