Browse Source

🐛 Remove unnecessary class name props (#2027)

It's unused and serialized to `undefined`.
Warren Seine 4 years ago
parent
commit
14317c2232
1 changed files with 2 additions and 12 deletions
  1. 2 12
      src/components/Avatar.tsx

+ 2 - 12
src/components/Avatar.tsx

@@ -4,22 +4,12 @@ import React from "react";
 
 
 type AvatarProps = {
 type AvatarProps = {
   children: string;
   children: string;
-  className?: string;
   onClick: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
   onClick: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
   color: string;
   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}
     {children}
   </div>
   </div>
 );
 );