From ee239ed97887f33b9ff287660f54fd0775fbd136 Mon Sep 17 00:00:00 2001 From: pratap0007 Date: Fri, 14 Apr 2023 16:28:35 +0530 Subject: [PATCH] Remove duplication of CUSTOM_LOGO_MEDIA_TYPE in UI This patch will remove duplicaion of CUSTOM_LOGO_MEDIA_TYPE in logo src Signed-off-by: Shiv Verma --- ui/src/containers/App/__snapshots__/App.test.tsx.snap | 4 ++-- ui/src/containers/Header/__snapshots__/Header.test.tsx.snap | 4 ++-- ui/src/containers/Header/index.tsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/src/containers/App/__snapshots__/App.test.tsx.snap b/ui/src/containers/App/__snapshots__/App.test.tsx.snap index e67d361e87..0e7b3ff053 100644 --- a/ui/src/containers/App/__snapshots__/App.test.tsx.snap +++ b/ui/src/containers/App/__snapshots__/App.test.tsx.snap @@ -18,8 +18,8 @@ exports[`App should render the component correctly and match the snapshot 1`] =
- - \\"Tekton + + \\"Tekton
diff --git a/ui/src/containers/Header/__snapshots__/Header.test.tsx.snap b/ui/src/containers/Header/__snapshots__/Header.test.tsx.snap index 2393fae9d5..ecebe79f84 100644 --- a/ui/src/containers/Header/__snapshots__/Header.test.tsx.snap +++ b/ui/src/containers/Header/__snapshots__/Header.test.tsx.snap @@ -10,8 +10,8 @@ exports[`Header should render the header component and find Search component 1`]
- - \\"Tekton + + \\"Tekton
diff --git a/ui/src/containers/Header/index.tsx b/ui/src/containers/Header/index.tsx index 9418acac1f..f3bcfc2091 100644 --- a/ui/src/containers/Header/index.tsx +++ b/ui/src/containers/Header/index.tsx @@ -90,7 +90,7 @@ const Header: React.FC = observer(() => { CUSTOM_LOGO_BASE64_DATA != '' ? `data:${ CUSTOM_LOGO_MEDIA_TYPE != '' ? CUSTOM_LOGO_MEDIA_TYPE : 'image/png' - }${CUSTOM_LOGO_MEDIA_TYPE};base64,${CUSTOM_LOGO_BASE64_DATA}` + };base64,${CUSTOM_LOGO_BASE64_DATA}` : logo } alt="Tekton Hub Logo"