File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/modules/users/table-cells Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ import FullTooltip from "@components/FullTooltip" ;
12import { cn } from "@utils/helpers" ;
3+ import { HelpCircle } from "lucide-react" ;
24import React from "react" ;
35import { User } from "@/interfaces/User" ;
46
@@ -35,6 +37,26 @@ export default function UserStatusCell({ user }: Readonly<Props>) {
3537 >
3638 < span className = { cn ( "h-2 w-2 rounded-full" , color ) } > </ span >
3739 { text }
40+ { isPendingApproval && (
41+ < FullTooltip
42+ content = {
43+ < div className = { "max-w-xs text-xs" } >
44+ < p > This user requires approval from an administrator.</ p >
45+ < p className = "mt-2" >
46+ To disable user approval requirements for new users, go to the account{ " " }
47+ < span className = "text-nb-gray-200 inline-flex gap-1 items-center max-h-[22px] font-medium bg-nb-gray-900 py-[3px] text-[11px] px-[5px] border border-nb-gray-800 rounded-[4px]" >
48+ Settings
49+ </ span > { " " }
50+ and disable "User Approval Required".
51+ </ p >
52+ </ div >
53+ }
54+ interactive = { true }
55+ side = "right"
56+ >
57+ < HelpCircle size = { 14 } className = "text-orange-400 cursor-help" />
58+ </ FullTooltip >
59+ ) }
3860 </ div >
3961 ) ;
4062}
You can’t perform that action at this time.
0 commit comments