Few darkmode fixes - Avatar Tooltip | Forgot password page (#8242)
This commit is contained in:
1 parent
ce763f30f6
commit
c545331cfe
3 files changed
+31
-12
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
||||
import * as Tooltip from "@radix-ui/react-tooltip";
|
||||
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
||||
import Link from "next/link";
|
||||
|
||||
import classNames from "@calcom/lib/classNames";
|
||||
@@ -8,6 +8,7 @@ import { defaultAvatarSrc } from "@calcom/lib/defaultAvatarImage";
|
||||
import type { Maybe } from "@trpc/server";
|
||||
|
||||
import { Check } from "../icon";
|
||||
import { Tooltip } from "../tooltip";
|
||||
|
||||
export type AvatarProps = {
|
||||
className?: string;
|
||||
@@ -75,15 +76,9 @@ export function Avatar(props: AvatarProps) {
|
||||
}
|
||||
|
||||
return title ? (
|
||||
<Tooltip.Provider>
|
||||
<Tooltip.Tooltip delayDuration={300}>
|
||||
<Tooltip.TooltipTrigger className="cursor-default">{avatar}</Tooltip.TooltipTrigger>
|
||||
<Tooltip.Content className="text-inverted rounded-sm bg-black p-2 text-sm shadow-sm">
|
||||
<Tooltip.Arrow />
|
||||
{title}
|
||||
</Tooltip.Content>
|
||||
</Tooltip.Tooltip>
|
||||
</Tooltip.Provider>
|
||||
<TooltipPrimitive.Provider>
|
||||
<Tooltip content={title}>{avatar}</Tooltip>
|
||||
</TooltipPrimitive.Provider>
|
||||
) : (
|
||||
<>{avatar}</>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user