show avatar placeholder in settings shell (#4639)
Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
1 parent
52959fe257
commit
4e7200a44b
1 file changed
+2
-3
@@ -5,6 +5,7 @@ import React, { ComponentProps, useEffect, useState } from "react";
|
|||||||
|
|
||||||
import { classNames } from "@calcom/lib";
|
import { classNames } from "@calcom/lib";
|
||||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||||
|
import { getPlaceholderAvatar } from "@calcom/lib/defaultAvatarImage";
|
||||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||||
import { trpc } from "@calcom/trpc/react";
|
import { trpc } from "@calcom/trpc/react";
|
||||||
import Button from "@calcom/ui/v2/core/Button";
|
import Button from "@calcom/ui/v2/core/Button";
|
||||||
@@ -194,13 +195,11 @@ const SettingsSidebarContainer = ({ className = "" }) => {
|
|||||||
<Icon.FiChevronRight />
|
<Icon.FiChevronRight />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{team.logo && (
|
|
||||||
<img
|
<img
|
||||||
src={team.logo}
|
src={getPlaceholderAvatar(team.logo, team?.name as string)}
|
||||||
className="mt-2 ml-[12px] mr-[8px] h-[16px] w-[16px] self-start stroke-[2px] md:mt-0"
|
className="mt-2 ml-[12px] mr-[8px] h-[16px] w-[16px] self-start stroke-[2px] md:mt-0"
|
||||||
alt={team.name || "Team logo"}
|
alt={team.name || "Team logo"}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
<p>{team.name}</p>
|
<p>{team.name}</p>
|
||||||
{!team.accepted && (
|
{!team.accepted && (
|
||||||
<Badge className="ml-3" variant="orange">
|
<Badge className="ml-3" variant="orange">
|
||||||
|
|||||||
Reference in new issue
Block a user