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 React, { useEffect, useRef } from "react";
import Image from "next/image";
import Link from "next/link";

View file

@ -1,3 +1,5 @@
"use client";
import React from "react";
import { ArrowLeft, CheckCheck, Clock, ListFilter, MoreVertical, RefreshCw, X } from "lucide-react";
import type { NotificationType, NotificationCount } from "@plane/types";
@ -181,8 +183,8 @@ export const NotificationHeader: React.FC<NotificationHeaderProps> = (props) =>
{snoozed
? "Snoozed Notifications"
: readNotification
? "Unread Notifications"
: "Archived Notifications"}
? "Unread Notifications"
: "Archived Notifications"}
</span>
</h4>
</button>

View file

@ -1,3 +1,5 @@
"use client";
import React, { Fragment } from "react";
import { observer } from "mobx-react-lite";
import { Bell } from "lucide-react";
@ -63,12 +65,12 @@ export const NotificationPopover = observer(() => {
const currentTabEmptyState = snoozed
? EmptyStateType.NOTIFICATION_SNOOZED_EMPTY_STATE
: archived
? EmptyStateType.NOTIFICATION_ARCHIVED_EMPTY_STATE
: selectedTab === "created"
? EmptyStateType.NOTIFICATION_CREATED_EMPTY_STATE
: selectedTab === "watching"
? EmptyStateType.NOTIFICATION_SUBSCRIBED_EMPTY_STATE
: EmptyStateType.NOTIFICATION_MY_ISSUE_EMPTY_STATE;
? EmptyStateType.NOTIFICATION_ARCHIVED_EMPTY_STATE
: selectedTab === "created"
? EmptyStateType.NOTIFICATION_CREATED_EMPTY_STATE
: selectedTab === "watching"
? EmptyStateType.NOTIFICATION_SUBSCRIBED_EMPTY_STATE
: EmptyStateType.NOTIFICATION_MY_ISSUE_EMPTY_STATE;
return (
<>

View file

@ -1,3 +1,5 @@
"use client";
import { Fragment, FC } from "react";
import { useParams } from "next/navigation";
import { useForm, Controller } from "react-hook-form";