chore: web app use client directive (#4747)

* chore: use client directive

* chore: use client directive
This commit is contained in:
Anmol Singh Bhatia 2024-06-10 15:13:10 +05:30 committed by GitHub
parent c880e8b48c
commit d3556f457b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
313 changed files with 649 additions and 45 deletions

View file

@ -1,3 +1,5 @@
"use client";
import { FC, useCallback, useEffect, useState } from "react";
import { observer } from "mobx-react";
import { useRouter } from "next/navigation";

View file

@ -1,3 +1,5 @@
"use client";
import React from "react";
import { observer } from "mobx-react";
import { useRouter } from "next/navigation";

View file

@ -1,3 +1,5 @@
"use client";
import React from "react";
import { observer } from "mobx-react";
import { useRouter } from "next/navigation";

View file

@ -1,3 +1,5 @@
"use client";
import { Dispatch, SetStateAction, useEffect, useMemo } from "react";
import { observer } from "mobx-react";
import { usePathname } from "next/navigation";

View file

@ -1,3 +1,5 @@
"use client";
import { FC } from "react";
import { observer } from "mobx-react";
import { X } from "lucide-react";

View file

@ -1,3 +1,5 @@
"use client";
import { FC } from "react";
import { observer } from "mobx-react";
import { X } from "lucide-react";

View file

@ -1,3 +1,5 @@
"use client";
import { FC } from "react";
import { observer } from "mobx-react";
import { X } from "lucide-react";

View file

@ -1,3 +1,5 @@
"use client";
import { FC, useState } from "react";
import { observer } from "mobx-react";
import { IIssueLabel } from "@plane/types";

View file

@ -1,3 +1,5 @@
"use client";
import { FC, useMemo, useState } from "react";
import sortBy from "lodash/sortBy";
import { observer } from "mobx-react";

View file

@ -1,3 +1,5 @@
"use client";
import { FC, useState } from "react";
import { observer } from "mobx-react";
import { TIssuePriorities } from "@plane/types";

View file

@ -1,3 +1,5 @@
"use client";
import { FC, useState } from "react";
import { observer } from "mobx-react";
import { IState } from "@plane/types";

View file

@ -1,3 +1,5 @@
"use client";
import { FC } from "react";
import { observer } from "mobx-react";
import { ArrowDownWideNarrow, ArrowUpWideNarrow, Check, ChevronDown } from "lucide-react";

View file

@ -1,3 +1,5 @@
"use client";
import React, { useState } from "react";
import { CheckCircle } from "lucide-react";
import { Dialog, Transition } from "@headlessui/react";

View file

@ -1,3 +1,5 @@
"use client";
import { FC, FormEvent, useCallback, useRef, useState } from "react";
import { observer } from "mobx-react";
import { usePathname, useRouter } from "next/navigation";

View file

@ -1,3 +1,5 @@
"use client";
import { FC, useCallback, useEffect, useRef, useState } from "react";
import { observer } from "mobx-react";
import { usePathname } from "next/navigation";

View file

@ -1,3 +1,5 @@
"use client";
import { FC, RefObject } from "react";
import { observer } from "mobx-react";
import { EditorRefApi } from "@plane/rich-text-editor";

View file

@ -1,3 +1,5 @@
"use client";
import { FC } from "react";
import { observer } from "mobx-react";
import { TIssue } from "@plane/types";

View file

@ -1,3 +1,5 @@
"use client";
import React, { useState } from "react";
import { useParams } from "next/navigation";
import useSWR from "swr";

View file

@ -1,3 +1,5 @@
"use client";
import { FC, Fragment, useState } from "react";
import { DayPicker } from "react-day-picker";
import { Dialog, Transition } from "@headlessui/react";

View file

@ -1,3 +1,5 @@
"use client";
import { FC, MouseEvent } from "react";
import { observer } from "mobx-react";
import Link from "next/link";

View file

@ -1,3 +1,5 @@
"use client";
import { FC, useCallback, useRef, useState } from "react";
import { observer } from "mobx-react";
import { useRouter } from "next/navigation";
@ -106,13 +108,13 @@ export const InboxSidebar: FC<IInboxSidebarProps> = observer((props) => {
className="w-full h-full overflow-hidden overflow-y-auto vertical-scrollbar scrollbar-md"
ref={containerRef}
>
{filteredInboxIssueIds.length > 0 ? (
{filteredInboxIssueIds.length > 0 ? (
<InboxIssueList
setIsMobileSidebar={setIsMobileSidebar}
workspaceSlug={workspaceSlug}
projectId={projectId}
projectIdentifier={currentProjectDetails?.identifier}
inboxIssueIds={filteredInboxIssueIds}
inboxIssueIds={filteredInboxIssueIds}
/>
) : (
<div className="flex items-center justify-center h-full w-full">
@ -128,14 +130,14 @@ export const InboxSidebar: FC<IInboxSidebarProps> = observer((props) => {
/>
</div>
)}
<div ref={setElementRef}>
{inboxIssuePaginationInfo?.next_page_results && (
<div ref={setElementRef}>
{inboxIssuePaginationInfo?.next_page_results && (
<Loader className="mx-auto w-full space-y-4 py-4 px-2">
<Loader.Item height="64px" width="w-100" />
<Loader.Item height="64px" width="w-100" />
</Loader>
)}
</div>
)}
</div>
</div>
)}
</div>