Skip to content

Commit

Permalink
feat: allow LOGO_URL runtime configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Nov 7, 2023
1 parent 1a51ac0 commit 277d929
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ ENABLE_NOTICES=''
CAREER_LINK_URL=''
OPTIMIZELY_FULL_STACK_SDK_KEY=''
EXPERIMENT_08_23_VAN_PAINTED_DOOR=true
APP_ID=''
MFE_CONFIG_API_URL=''
2 changes: 2 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ ACCOUNT_PROFILE_URL='http://localhost:1995'
ENABLE_NOTICES=''
CAREER_LINK_URL=''
OPTIMIZELY_FULL_STACK_SDK_KEY=''
APP_ID=''
MFE_CONFIG_API_URL=''
4 changes: 2 additions & 2 deletions src/containers/LearnerDashboardHeader/BrandLogo.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';

import { getConfig } from '@edx/frontend-platform';
import { useIntl } from '@edx/frontend-platform/i18n';

import { reduxHooks } from 'hooks';
import { configuration } from '../../config';

import messages from './messages';

Expand All @@ -15,7 +15,7 @@ export const BrandLogo = () => {
<a href={dashboard?.url || '/'} className="mx-auto">
<img
className="logo py-3"
src={configuration.LOGO_URL}
src={getConfig().LOGO_URL}
alt={formatMessage(messages.logoAltText)}
/>
</a>
Expand Down

0 comments on commit 277d929

Please sign in to comment.