Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

🐛 Remove unnecessary class name props (#2027)

Warren Seine14317c2232d8
diff --git a/src/components/Avatar.tsx b/src/components/Avatar.tsx
index 418f25fc5b..c2970f5026 100644
--- a/src/components/Avatar.tsx
+++ b/src/components/Avatar.tsx
@@ -4,22 +4,12 @@ import React from "react";
type AvatarProps = {
children: string;
- className?: string;
onClick: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
color: string;
};
-export const Avatar = ({
- children,
- className,
- color,
- onClick,
-}: AvatarProps) => (
- <div
- className={`Avatar ${className}`}
- style={{ background: color }}
- onClick={onClick}
- >
+export const Avatar = ({ children, color, onClick }: AvatarProps) => (
+ <div className={`Avatar`} style={{ background: color }} onClick={onClick}>
{children}
</div>
);