Skip to content

Commit

Permalink
move fonteawesome library initialization to App, so that they are als…
Browse files Browse the repository at this point in the history
…o registered during unit test (wich do not import index.tsx )
  • Loading branch information
xeronimus committed Feb 7, 2022
1 parent 6838bdd commit 3658457
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 6 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
import React, {useRef, useState} from 'react';
import {BrowserRouter as Router, Route, Routes} from 'react-router-dom';
import './App.scss';
import initFaLibrary from './common/faLibrary';

import Hero from "./components/Hero/Hero";
import ZueBanner from "./components/ZueBanner/ZueBanner";
import Navigation from "./components/Navigation/Navigation";
import Footer from "./components/Footer/Footer";
import SidebarNavigation from "./components/SideNavigation/SidebarNavigation";
import contributions from "./data/contributions.json";
import externalContributions from "./data/external_contributions.json";
import people from "./data/people.json";

import SidebarNavigation from "./components/SideNavigation/SidebarNavigation";
import {MetaLinkSpec, RouteSpec} from "./common/types";
import OverlayStateContext, {OverlayState} from "./context/overlayState";
import Contributions from "./pages/Contributions/Contributions";
import People from "./pages/People/People";
import './App.scss';

initFaLibrary();// Font Awesome library

function App() {

Expand Down
4 changes: 0 additions & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import ReactDOM from 'react-dom';
import './index.scss';
import App from './App';
import reportWebVitals from './reportWebVitals';
import initFaLibrary from './common/faLibrary';

// Font Awesome library
initFaLibrary();

ReactDOM.render(
<React.StrictMode>
Expand Down

0 comments on commit 3658457

Please sign in to comment.