From 3a84832da5e45489a72551daa79b9f0260527907 Mon Sep 17 00:00:00 2001 From: Andre H Date: Thu, 7 Mar 2024 14:22:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore:=20add=20tooltip=20on=20ho?= =?UTF-8?q?ver=20projectcard=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projects/ProjectCard/ProjectCard.tsx | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/packages/frontend/src/components/projects/ProjectCard/ProjectCard.tsx b/packages/frontend/src/components/projects/ProjectCard/ProjectCard.tsx index 1c91e51d..5a0ff9b5 100644 --- a/packages/frontend/src/components/projects/ProjectCard/ProjectCard.tsx +++ b/packages/frontend/src/components/projects/ProjectCard/ProjectCard.tsx @@ -1,12 +1,18 @@ +import { + Menu, + MenuHandler, + MenuItem, + MenuList, +} from '@material-tailwind/react'; import React, { ComponentPropsWithoutRef, MouseEvent, useCallback, } from 'react'; -import { ProjectCardTheme, projectCardTheme } from './ProjectCard.theme'; +import { useNavigate } from 'react-router-dom'; import { Project } from 'gql-client'; +import { Avatar } from 'components/shared/Avatar'; import { Button } from 'components/shared/Button'; -import { WavyBorder } from 'components/shared/WavyBorder'; import { BranchIcon, ClockIcon, @@ -14,16 +20,11 @@ import { HorizontalDotIcon, WarningDiamondIcon, } from 'components/shared/CustomIcon'; +import { Tooltip } from 'components/shared/Tooltip'; +import { WavyBorder } from 'components/shared/WavyBorder'; import { relativeTimeMs } from 'utils/time'; -import { useNavigate } from 'react-router-dom'; -import { Avatar } from 'components/shared/Avatar'; import { getInitials } from 'utils/geInitials'; -import { - Menu, - MenuHandler, - MenuItem, - MenuList, -} from '@material-tailwind/react'; +import { ProjectCardTheme, projectCardTheme } from './ProjectCard.theme'; export interface ProjectCardProps extends ComponentPropsWithoutRef<'div'>, @@ -72,7 +73,9 @@ export const ProjectCard = ({ /> {/* Title and website */}
-

{project.name}

+ +

{project.name}

+

{project.deployments[0]?.domain?.name ?? 'No domain'}