From 03ceb2977f6ef925465c9a5037b07d38ea3d231b Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 21 Oct 2021 15:56:08 -0600 Subject: [PATCH] Code cleanups as per feedback --- .../js/components/pulse-profile/pulse-profile.jsx | 14 ++++++++------ .../tabbed-profile-directory/loading-spinner.jsx | 9 +++++++-- .../tabbed-profile-directory/locale-strings.jsx | 12 ++++++++++++ .../subfilter-dropdown.jsx | 5 ++++- 4 files changed, 31 insertions(+), 9 deletions(-) diff --git a/source/js/components/pulse-profile/pulse-profile.jsx b/source/js/components/pulse-profile/pulse-profile.jsx index 12618797ef1..70e752dcc33 100644 --- a/source/js/components/pulse-profile/pulse-profile.jsx +++ b/source/js/components/pulse-profile/pulse-profile.jsx @@ -1,8 +1,9 @@ import React from "react"; const PulseProfile = ({ profile }) => { + const profileUrl = "https://www.mozillapulse.org/profile/"; return ( -
+
{/* Image */} { {/* Right card */}
- {/* Card top */}
{profile.name} @@ -61,9 +61,11 @@ const PulseProfile = ({ profile }) => { )} {/* Short bio block */} - {profile.user_bio && -

{profile.user_bio}

- } + {profile.user_bio && ( +

+ {profile.user_bio} +

+ )} {profile.program_type && (
diff --git a/source/js/components/tabbed-profile-directory/loading-spinner.jsx b/source/js/components/tabbed-profile-directory/loading-spinner.jsx index db4980773a3..2a3d6aa89a5 100644 --- a/source/js/components/tabbed-profile-directory/loading-spinner.jsx +++ b/source/js/components/tabbed-profile-directory/loading-spinner.jsx @@ -1,7 +1,12 @@ +import { getText } from "./locales"; + const LoadingSpinner = () => { return ( -
-
+
+