Skip to content

Commit

Permalink
fix: use runtime config to load footer logo
Browse files Browse the repository at this point in the history
  • Loading branch information
johanseto committed Apr 26, 2024
1 parent e01e320 commit 55ae694
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';

import { getConfig } from '@edx/frontend-platform';
import { AppProvider } from '@edx/frontend-platform/react';

import Footer from '@edx/frontend-component-footer';
Expand All @@ -27,7 +28,7 @@ const App = () => (
/>
</Switch>
</main>
<Footer logo={process.env.LOGO_POWERED_BY_OPEN_EDX_URL_SVG} />
<Footer logo={getConfig().LOGO_TRADEMARK_URL || process.env.LOGO_POWERED_BY_OPEN_EDX_URL_SVG} />
</div>
</Router>
</AppProvider>
Expand Down

0 comments on commit 55ae694

Please sign in to comment.