chore: web app use client directive (#4747)
* chore: use client directive * chore: use client directive
This commit is contained in:
parent
c880e8b48c
commit
d3556f457b
313 changed files with 649 additions and 45 deletions
|
|
@ -1,3 +1,5 @@
|
|||
"use client";
|
||||
|
||||
import { FC, MouseEvent, useRef } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import Link from "next/link";
|
||||
|
|
@ -136,8 +138,8 @@ export const CyclesBoardCard: FC<ICyclesBoardCard> = observer((props) => {
|
|||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
const query = generateQueryParams(searchParams, ['peekCycle']);
|
||||
if (searchParams.has('peekCycle')) {
|
||||
const query = generateQueryParams(searchParams, ["peekCycle"]);
|
||||
if (searchParams.has("peekCycle")) {
|
||||
router.push(`${pathname}?${query}`);
|
||||
} else {
|
||||
router.push(`${pathname}?${query}&peekCycle=${cycleId}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue