From 5d1b53af568e78c73a3eed29e01056ed2f1354d9 Mon Sep 17 00:00:00 2001 From: ihor-romaniuk Date: Thu, 5 Jan 2023 16:42:41 +0200 Subject: [PATCH] feat: replace hardcoded logo with logo from configs --- src/studio-header/Header.jsx | 5 +- src/studio-header/assets/studio-logo.svg | 77 ------------------------ 2 files changed, 2 insertions(+), 80 deletions(-) delete mode 100644 src/studio-header/assets/studio-logo.svg diff --git a/src/studio-header/Header.jsx b/src/studio-header/Header.jsx index 61c758ab20..b05718ccb2 100644 --- a/src/studio-header/Header.jsx +++ b/src/studio-header/Header.jsx @@ -15,12 +15,11 @@ import DesktopHeader from './DesktopHeader'; import MobileHeader from './MobileHeader'; import messages from './Header.messages'; -import StudioLogoSVG from './assets/studio-logo.svg'; - ensureConfig([ 'STUDIO_BASE_URL', 'LOGOUT_URL', 'LOGIN_URL', + 'LOGO_URL', ], 'Header component'); function Header({ @@ -154,7 +153,7 @@ function Header({ ); const props = { - logo: StudioLogoSVG, + logo: config.LOGO_URL, logoAltText: 'Studio edX', siteName: 'edX', logoDestination: config.STUDIO_BASE_URL, diff --git a/src/studio-header/assets/studio-logo.svg b/src/studio-header/assets/studio-logo.svg deleted file mode 100644 index 96d2b94cdf..0000000000 --- a/src/studio-header/assets/studio-logo.svg +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -