From 85b8d09d6806706543a8d7b22b225413b4386573 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 23 Nov 2022 11:45:52 -0600 Subject: [PATCH] ProfilePreview: fix display of header image, code cleanup --- app/soapbox/components/ui/avatar/avatar.tsx | 2 +- .../components/profile-preview.tsx | 27 ++++++++++--------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/app/soapbox/components/ui/avatar/avatar.tsx b/app/soapbox/components/ui/avatar/avatar.tsx index ec1980978..b6e0bcbf0 100644 --- a/app/soapbox/components/ui/avatar/avatar.tsx +++ b/app/soapbox/components/ui/avatar/avatar.tsx @@ -25,7 +25,7 @@ const Avatar = (props: IAvatar) => { return ( = ({ account }) => { return (
-
-
- -
+
+
-
- -
+ - {account.verified &&
} + {account.verified && ( +
+ +
+ )}
- - {account.display_name} - + @{displayFqn ? account.fqn : account.acct}