From c4cd2d20491490453370e20d2c64ef412339b169 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 1 May 2022 13:29:36 -0500 Subject: [PATCH] CardTitle: truncate too long text --- app/soapbox/components/ui/card/card.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/soapbox/components/ui/card/card.tsx b/app/soapbox/components/ui/card/card.tsx index 25238c984..701477ac7 100644 --- a/app/soapbox/components/ui/card/card.tsx +++ b/app/soapbox/components/ui/card/card.tsx @@ -81,8 +81,8 @@ interface ICardTitle { } /** A card's title. */ -const CardTitle = ({ title }: ICardTitle): JSX.Element => ( - {title} +const CardTitle: React.FC = ({ title }): JSX.Element => ( + {title} ); /** A card's body. */