From 59fe8245dd569668794b971b2c9864b05bd84889 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Thu, 5 May 2022 14:41:10 +0200 Subject: [PATCH] change(ui) - user list tooltip --- .../app/components/Client/Users/UsersView.tsx | 2 -- .../components/UserListItem/UserListItem.tsx | 34 ++++++++++++++----- frontend/app/mstore/types/user.ts | 1 - 3 files changed, 25 insertions(+), 12 deletions(-) diff --git a/frontend/app/components/Client/Users/UsersView.tsx b/frontend/app/components/Client/Users/UsersView.tsx index 9825db446..693c47229 100644 --- a/frontend/app/components/Client/Users/UsersView.tsx +++ b/frontend/app/components/Client/Users/UsersView.tsx @@ -37,8 +37,6 @@ function UsersView(props: Props) { } }, []); - console.log('remaining', limits, reachedLimit) - return (
diff --git a/frontend/app/components/Client/Users/components/UserListItem/UserListItem.tsx b/frontend/app/components/Client/Users/components/UserListItem/UserListItem.tsx index 10f2f2fe0..bb6d6b2f6 100644 --- a/frontend/app/components/Client/Users/components/UserListItem/UserListItem.tsx +++ b/frontend/app/components/Client/Users/components/UserListItem/UserListItem.tsx @@ -1,6 +1,8 @@ +//@ts-nocheck import React from 'react'; -import { Icon, CopyButton } from 'UI'; +import { Icon } from 'UI'; import { checkForRecent } from 'App/date'; +import { Tooltip } from 'react-tippy'; interface Props { user: any; @@ -30,18 +32,32 @@ function UserListItem(props: Props) {
{user.createdAt && checkForRecent(user.createdAt, 'LLL dd, yyyy, hh:mm a')}
- {/* invisible */} -
+ +
{!user.isJoined && user.invitationLink ? ( - + + + ) :
} {!user.isJoined && user.isExpiredInvite && ( - + + + )}