From b42ad9fb0a49b56238f620627a37a12ad613675a Mon Sep 17 00:00:00 2001 From: Saloni Shah Date: Thu, 23 Jan 2025 11:36:43 -0500 Subject: [PATCH] [AN-383] Fixes issue with logos on Workflows Library (#5228) --- src/pages/library/WorkflowsLibrary.tsx | 27 +++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/pages/library/WorkflowsLibrary.tsx b/src/pages/library/WorkflowsLibrary.tsx index 1d83550fe3..e474aeb310 100644 --- a/src/pages/library/WorkflowsLibrary.tsx +++ b/src/pages/library/WorkflowsLibrary.tsx @@ -4,6 +4,7 @@ import React from 'react'; import FooterWrapper from 'src/components/FooterWrapper'; import { libraryTopMatter } from 'src/components/library-common'; import terraLogo from 'src/images/brands/terra/logo.svg'; +import broadLogo from 'src/images/library/workflows/broad-square.svg'; import dockstoreLogo from 'src/images/library/workflows/dockstore.svg'; import { Metrics } from 'src/libs/ajax/Metrics'; import { getEnabledBrand } from 'src/libs/brand-utils'; @@ -29,22 +30,25 @@ const styles = { interface LogoTileProps { logoFilePath: string; + logoName: string; } const LogoTile = (props: LogoTileProps) => { return (
+ > + {props.logoName} +
); }; @@ -80,7 +84,7 @@ const WorkflowSourceBox = (props: WorkflowSourceBoxProps) => { }} >
- +
{props.title}
@@ -145,6 +149,7 @@ export const WorkflowsLibrary = () => { const workflowsRepoUrl: string = isFeaturePreviewEnabled(FIRECLOUD_UI_MIGRATION) ? Nav.getLink('workflows') : `${getConfig().firecloudUrlRoot}/?return=${getEnabledBrand().queryName}#methods`; + const workflowsRepoLogo = isFeaturePreviewEnabled(FIRECLOUD_UI_MIGRATION) ? terraLogo : broadLogo; return ( @@ -173,7 +178,7 @@ export const WorkflowsLibrary = () => { } description='A repository of WDL workflows that offers quick hosting of public and private workflows.' url={workflowsRepoUrl} - logoFilePath={terraLogo} + logoFilePath={workflowsRepoLogo} metricsEventName={Events.libraryWorkflowsTerraRepo} />