From 14317c2232d80b13f3ac52cb74fcf5f28ffd8b87 Mon Sep 17 00:00:00 2001 From: Warren Seine Date: Fri, 14 Aug 2020 20:05:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Remove=20unnecessary=20class=20n?= =?UTF-8?q?ame=20props=20(#2027)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's unused and serialized to `undefined`. --- src/components/Avatar.tsx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) 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) => void; color: string; }; -export const Avatar = ({ - children, - className, - color, - onClick, -}: AvatarProps) => ( -
+export const Avatar = ({ children, color, onClick }: AvatarProps) => ( +
{children}
);