- {projectStore?.project && projectStore?.project?.emoji ? (
- renderEmoji(projectStore?.project?.emoji)
+ {projectStore.project ? (
+ projectStore.project?.emoji ? (
+
+ {renderEmoji(projectStore.project.emoji)}
+
+ ) : projectStore.project?.icon_prop ? (
+
+ {renderEmoji(projectStore.project.icon_prop)}
+
+ ) : (
+
+ {projectStore.project?.name.charAt(0)}
+
+ )
) : (
-
+
+
+
)}
@@ -113,26 +127,13 @@ const IssueNavbar = observer(() => {
{user ? (
- {user.avatar && user.avatar !== "" ? (
-
- {/* eslint-disable-next-line @next/next/no-img-element */}
-
-
- ) : (
-
- {(user.display_name ?? "A")[0]}
-
- )}
+
{user.display_name}
) : (
-
-
- Sign in
-
-
+
)}
diff --git a/space/components/issues/peek-overview/comment/comment-reactions.tsx b/space/components/issues/peek-overview/comment/comment-reactions.tsx
index 4045d3edf..d53ae4936 100644
--- a/space/components/issues/peek-overview/comment/comment-reactions.tsx
+++ b/space/components/issues/peek-overview/comment/comment-reactions.tsx
@@ -6,7 +6,8 @@ import { useRouter } from "next/router";
import { observer } from "mobx-react-lite";
import { useMobxStore } from "lib/mobx/store-provider";
// ui
-import { ReactionSelector, Tooltip } from "components/ui";
+import { ReactionSelector } from "components/ui";
+import { Tooltip } from "@plane/ui";
// helpers
import { groupReactions, renderEmoji } from "helpers/emoji.helper";
diff --git a/space/components/issues/peek-overview/full-screen-peek-view.tsx b/space/components/issues/peek-overview/full-screen-peek-view.tsx
index 3a66c9abe..e07620c05 100644
--- a/space/components/issues/peek-overview/full-screen-peek-view.tsx
+++ b/space/components/issues/peek-overview/full-screen-peek-view.tsx
@@ -7,7 +7,7 @@ import {
PeekOverviewIssueProperties,
} from "components/issues/peek-overview";
// types
-import { Loader } from "components/ui/loader";
+import { Loader } from "@plane/ui";
import { IIssue } from "types/issue";
type Props = {
diff --git a/space/components/issues/peek-overview/issue-activity.tsx b/space/components/issues/peek-overview/issue-activity.tsx
index 2d173487c..cbb27679b 100644
--- a/space/components/issues/peek-overview/issue-activity.tsx
+++ b/space/components/issues/peek-overview/issue-activity.tsx
@@ -10,7 +10,8 @@ import { useMobxStore } from "lib/mobx/store-provider";
// components
import { CommentCard, AddComment } from "components/issues/peek-overview";
// ui
-import { Icon, PrimaryButton } from "components/ui";
+import { Icon } from "components/ui";
+import { Button } from "@plane/ui";
// types
import { IIssue } from "types/issue";
@@ -55,9 +56,7 @@ export const PeekOverviewIssueActivity: React.FC
= observer(() => {
Sign in to add your comment
-
- Sign in
-
+
)}
diff --git a/space/components/issues/peek-overview/issue-emoji-reactions.tsx b/space/components/issues/peek-overview/issue-emoji-reactions.tsx
index b0c5b0361..dfd45f62b 100644
--- a/space/components/issues/peek-overview/issue-emoji-reactions.tsx
+++ b/space/components/issues/peek-overview/issue-emoji-reactions.tsx
@@ -6,7 +6,8 @@ import { useMobxStore } from "lib/mobx/store-provider";
// helpers
import { groupReactions, renderEmoji } from "helpers/emoji.helper";
// components
-import { ReactionSelector, Tooltip } from "components/ui";
+import { ReactionSelector } from "components/ui";
+import { Tooltip } from "@plane/ui";
export const IssueEmojiReactions: React.FC = observer(() => {
// router
diff --git a/space/components/issues/peek-overview/issue-vote-reactions.tsx b/space/components/issues/peek-overview/issue-vote-reactions.tsx
index ac20565ea..8d619681a 100644
--- a/space/components/issues/peek-overview/issue-vote-reactions.tsx
+++ b/space/components/issues/peek-overview/issue-vote-reactions.tsx
@@ -6,7 +6,8 @@ import { useRouter } from "next/router";
import { observer } from "mobx-react-lite";
// lib
import { useMobxStore } from "lib/mobx/store-provider";
-import { Tooltip } from "components/ui";
+// ui
+import { Tooltip } from "@plane/ui";
export const IssueVotes: React.FC = observer(() => {
const [isSubmitting, setIsSubmitting] = useState(false);
diff --git a/space/components/issues/peek-overview/side-peek-view.tsx b/space/components/issues/peek-overview/side-peek-view.tsx
index bacf83420..f0fc3d83e 100644
--- a/space/components/issues/peek-overview/side-peek-view.tsx
+++ b/space/components/issues/peek-overview/side-peek-view.tsx
@@ -7,7 +7,7 @@ import {
PeekOverviewIssueProperties,
} from "components/issues/peek-overview";
-import { Loader } from "components/ui/loader";
+import { Loader } from "@plane/ui";
import { IIssue } from "types/issue";
type Props = {
diff --git a/space/components/ui/index.ts b/space/components/ui/index.ts
index e44096909..1e523d5dd 100644
--- a/space/components/ui/index.ts
+++ b/space/components/ui/index.ts
@@ -1,8 +1,3 @@
export * from "./dropdown";
-export * from "./input";
-export * from "./loader";
-export * from "./primary-button";
-export * from "./secondary-button";
export * from "./icon";
export * from "./reaction-selector";
-export * from "./tooltip";
diff --git a/space/components/ui/input.tsx b/space/components/ui/input.tsx
deleted file mode 100644
index b6be82ae5..000000000
--- a/space/components/ui/input.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import React, { forwardRef, Ref } from "react";
-
-// types
-interface Props extends React.InputHTMLAttributes
{
- mode?: "primary" | "transparent" | "trueTransparent";
- error?: boolean;
- inputSize?: "rg" | "lg";
- fullWidth?: boolean;
-}
-
-export const Input = forwardRef((props: Props, ref: Ref) => {
- const { mode = "primary", error, className = "", type, fullWidth = true, id, inputSize = "rg", ...rest } = props;
-
- return (
-
- );
-});
-
-Input.displayName = "Input";
-
-export default Input;
diff --git a/space/components/ui/loader.tsx b/space/components/ui/loader.tsx
deleted file mode 100644
index b9d13883a..000000000
--- a/space/components/ui/loader.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import React from "react";
-
-type Props = {
- children: React.ReactNode;
- className?: string;
-};
-
-const Loader = ({ children, className = "" }: Props) => (
-
- {children}
-
-);
-
-type ItemProps = {
- height?: string;
- width?: string;
-};
-
-const Item: React.FC = ({ height = "auto", width = "auto" }) => (
-
-);
-
-Loader.Item = Item;
-
-export { Loader };
diff --git a/space/components/ui/primary-button.tsx b/space/components/ui/primary-button.tsx
deleted file mode 100644
index b3e1b82ee..000000000
--- a/space/components/ui/primary-button.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-interface ButtonProps extends React.ButtonHTMLAttributes {
- size?: "sm" | "md" | "lg";
- outline?: boolean;
- loading?: boolean;
-}
-
-export const PrimaryButton: React.FC = ({
- children,
- className = "",
- onClick,
- type = "button",
- disabled = false,
- loading = false,
- size = "sm",
- outline = false,
-}) => (
-
-);
diff --git a/space/components/ui/secondary-button.tsx b/space/components/ui/secondary-button.tsx
deleted file mode 100644
index 2a9b3d528..000000000
--- a/space/components/ui/secondary-button.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-interface ButtonProps extends React.ButtonHTMLAttributes {
- size?: "sm" | "md" | "lg";
- outline?: boolean;
- loading?: boolean;
-}
-
-export const SecondaryButton: React.FC = ({
- children,
- className = "",
- onClick,
- type = "button",
- disabled = false,
- loading = false,
- size = "sm",
- outline = false,
-}) => (
-
-);
diff --git a/space/components/ui/tooltip.tsx b/space/components/ui/tooltip.tsx
deleted file mode 100644
index 64876ffc0..000000000
--- a/space/components/ui/tooltip.tsx
+++ /dev/null
@@ -1,70 +0,0 @@
-import React from "react";
-// next-themes
-import { useTheme } from "next-themes";
-// tooltip2
-import { Tooltip2 } from "@blueprintjs/popover2";
-
-type Props = {
- tooltipHeading?: string;
- tooltipContent: string | React.ReactNode;
- position?:
- | "top"
- | "right"
- | "bottom"
- | "left"
- | "auto"
- | "auto-end"
- | "auto-start"
- | "bottom-left"
- | "bottom-right"
- | "left-bottom"
- | "left-top"
- | "right-bottom"
- | "right-top"
- | "top-left"
- | "top-right";
- children: JSX.Element;
- disabled?: boolean;
- className?: string;
- openDelay?: number;
- closeDelay?: number;
-};
-
-export const Tooltip: React.FC = ({
- tooltipHeading,
- tooltipContent,
- position = "top",
- children,
- disabled = false,
- className = "",
- openDelay = 200,
- closeDelay,
-}) => {
- const { theme } = useTheme();
-
- return (
-
- {tooltipHeading && (
-
- {tooltipHeading}
-
- )}
- {tooltipContent}
-
- }
- position={position}
- renderTarget={({ isOpen: isTooltipOpen, ref: eleReference, ...tooltipProps }) =>
- React.cloneElement(children, { ref: eleReference, ...tooltipProps, ...children.props })
- }
- />
- );
-};
diff --git a/web/components/profile/navbar.tsx b/web/components/profile/navbar.tsx
index 23eea6222..7c9b3b922 100644
--- a/web/components/profile/navbar.tsx
+++ b/web/components/profile/navbar.tsx
@@ -51,7 +51,7 @@ export const ProfileNavbar: React.FC