cheogram-www

created pr with cheogram-www/call-show-account.1 on 2026-10-27T03:40:44Z · by 9e834e0d
changed pr name to Show what account is in use for a call on the modals on 2026-10-27T03:41:28Z · by 9e834e0d
cmds
checkout latest patchset:
ssh pr.pico.sh pull cheogram-www:call-show-account | git am -3
checkout specific patchset revision:
ssh pr.pico.sh pull cheogram-www:call-show-account [rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh cheogram-www:call-show-account
add comment to patch request:
ssh pr.pico.sh comment cheogram-www:call-show-account "lgtm!"
+4 -1 src/components/AvatarWithPlaceholder.tsx #
......@@ -1,12 +1,13 @@
11 import { Avatar, Status, UserStatus } from "@chatscope/chat-ui-kit-react";
22 import { Image } from "react-img-placeholder";
3-import { HTMLAttributes } from "react";
3+import { HTMLAttributes, ReactNode } from "react";
44
55 export const AvatarWithPlaceholder = ({
66 displayName,
77 photoUri,
88 placeholderUri,
99 status,
10+ children,
1011 "aria-label": ariaLabel,
1112 ...rest
1213 }: HTMLAttributes<HTMLDivElement> & {
......@@ -16,6 +17,7 @@ export const AvatarWithPlaceholder = ({
1617 status?: UserStatus;
1718 onClick?: () => void;
1819 size?: "xs" | "sm" | "md" | "lg" | "fluid";
20+ children?: ReactNode;
1921 }) => {
2022 return (
2123 <Avatar {...rest} aria-label={ariaLabel}>
......@@ -27,6 +29,7 @@ export const AvatarWithPlaceholder = ({
2729 aria-hidden={ariaLabel ? "true" : undefined}
2830 />
2931 {typeof status === "string" && <Status status={status} size="md" />}
32+ {children}
3033 </Avatar>
3134 );
3235 };
Back to top