From e8d25c690a247d972c34f70e9c51f8e2e697282b Mon Sep 17 00:00:00 2001 From: Matt Bemis Date: Wed, 6 Nov 2024 14:12:59 -0500 Subject: [PATCH] cleanup --- .../dashboard/widgets/MailingListWidget.tsx | 2 +- .../dashboard/widgets/StudyTeamWidget.tsx | 2 +- .../dashboard/widgets/StudyTrendsWidget.tsx | 2 +- .../portal/dashboard/widgets/StudyWidget.tsx | 2 +- .../dashboard/widgets/TutorialsWidget.tsx | 2 +- .../dashboard/widgets/WebsiteWidget.tsx | 30 ++++++++++++------- 6 files changed, 24 insertions(+), 16 deletions(-) diff --git a/ui-admin/src/portal/dashboard/widgets/MailingListWidget.tsx b/ui-admin/src/portal/dashboard/widgets/MailingListWidget.tsx index f4354bc6b..dc8afe099 100644 --- a/ui-admin/src/portal/dashboard/widgets/MailingListWidget.tsx +++ b/ui-admin/src/portal/dashboard/widgets/MailingListWidget.tsx @@ -26,7 +26,7 @@ export const MailingListWidget = ({ portal }: { portal: Portal }) => { }, [portal.shortcode]) return ( - +
Mailing List diff --git a/ui-admin/src/portal/dashboard/widgets/StudyTeamWidget.tsx b/ui-admin/src/portal/dashboard/widgets/StudyTeamWidget.tsx index d2a3d80e6..8237dda7a 100644 --- a/ui-admin/src/portal/dashboard/widgets/StudyTeamWidget.tsx +++ b/ui-admin/src/portal/dashboard/widgets/StudyTeamWidget.tsx @@ -27,7 +27,7 @@ export const StudyTeamWidget = ({ portal }: { portal: Portal }) => { }) return ( - +
Team Members diff --git a/ui-admin/src/portal/dashboard/widgets/StudyTrendsWidget.tsx b/ui-admin/src/portal/dashboard/widgets/StudyTrendsWidget.tsx index 05b09db08..6b04ff109 100644 --- a/ui-admin/src/portal/dashboard/widgets/StudyTrendsWidget.tsx +++ b/ui-admin/src/portal/dashboard/widgets/StudyTrendsWidget.tsx @@ -35,7 +35,7 @@ export const StudyTrendsWidget = ({ portal, study }: { portal: Portal, study: St } return ( - +
{study.name} diff --git a/ui-admin/src/portal/dashboard/widgets/StudyWidget.tsx b/ui-admin/src/portal/dashboard/widgets/StudyWidget.tsx index bae70dfdf..50c4de2c7 100644 --- a/ui-admin/src/portal/dashboard/widgets/StudyWidget.tsx +++ b/ui-admin/src/portal/dashboard/widgets/StudyWidget.tsx @@ -27,7 +27,7 @@ export const StudyWidget = ({ portal }: { portal: Portal }) => { }) return ( - +
Studies diff --git a/ui-admin/src/portal/dashboard/widgets/TutorialsWidget.tsx b/ui-admin/src/portal/dashboard/widgets/TutorialsWidget.tsx index ce6433f11..42f835d1d 100644 --- a/ui-admin/src/portal/dashboard/widgets/TutorialsWidget.tsx +++ b/ui-admin/src/portal/dashboard/widgets/TutorialsWidget.tsx @@ -8,7 +8,7 @@ import { InfoCard, InfoCardBody, InfoCardHeader } from 'components/InfoCard' export const TutorialsWidget = () => { return ( - +
Help & Tutorials diff --git a/ui-admin/src/portal/dashboard/widgets/WebsiteWidget.tsx b/ui-admin/src/portal/dashboard/widgets/WebsiteWidget.tsx index 1110166fe..571c63725 100644 --- a/ui-admin/src/portal/dashboard/widgets/WebsiteWidget.tsx +++ b/ui-admin/src/portal/dashboard/widgets/WebsiteWidget.tsx @@ -1,6 +1,6 @@ import { Button } from 'components/forms/Button' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import { faEye, faGear, faImage, faPalette, faPencil } from '@fortawesome/free-solid-svg-icons' +import { faArrowUpRightFromSquare, faEye, faGear, faImage, faPalette, faPencil } from '@fortawesome/free-solid-svg-icons' import React from 'react' import { Portal } from '@juniper/ui-core' import { DropdownButton } from 'study/participants/survey/SurveyResponseView' @@ -13,7 +13,7 @@ export const WebsiteWidget = ({ portal }: { portal: Portal }) => { env.environmentName === 'live')?.portalEnvironmentConfig.participantHostname return ( - +
Website @@ -31,15 +31,23 @@ export const WebsiteWidget = ({ portal }: { portal: Portal }) => {
-
-
- { livePortalUrl ? - {'Website : - Website not yet published - } +
+
+
+ {livePortalUrl ? + : + Website not yet published + } +