Skip to content

Commit

Permalink
remove id prop
Browse files Browse the repository at this point in the history
  • Loading branch information
sainak committed Oct 21, 2024
1 parent 4ee05c7 commit f208942
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions src/Components/Common/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@ const initials = (name: string): string => {
};

interface AvatarProps {
id?: string;
colors?: [string, string];
name: string;
imageUrl?: string;
className?: string;
}

const Avatar: React.FC<AvatarProps> = ({
id,
colors: propColors,
name,
imageUrl,
Expand All @@ -60,7 +58,6 @@ const Avatar: React.FC<AvatarProps> = ({
const [bgColor] = propColors || toColor(name);
return (
<div
id={id}
className={cn(
`flex aspect-square w-full items-center justify-center overflow-hidden border border-black/10`,
className,
Expand Down
1 change: 1 addition & 0 deletions src/Components/Common/AvatarEditable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useTranslation } from "react-i18next";
import { AvatarProps, Avatar } from "@/Components/Common/Avatar";

interface AvatarEditableProps extends AvatarProps {
id?: string;
editable?: boolean;
onClick?: () => void;
}
Expand Down

0 comments on commit f208942

Please sign in to comment.