Skip to content

Commit

Permalink
Merge pull request #16 from ricardogsilva/remove-fontfaceobserver
Browse files Browse the repository at this point in the history
Removed fontfaceobserver dependency
  • Loading branch information
francbartoli authored Dec 13, 2024
2 parents 9a3741c + 4e0bfbc commit 29a9ac2
Show file tree
Hide file tree
Showing 3 changed files with 306 additions and 686 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "1.0.0",
"license": "CC-BY-SA-3.0",
"author": "Giorgio Resci - INKODE SOC COOP <[email protected]> (https://inkode.it/)",
"private": false,
"homepage": ".",
"dependencies": {
"@emotion/react": "11.10.4",
Expand Down Expand Up @@ -41,7 +40,6 @@
"eslint-config-prettier": "8.5.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react-hooks": "4.6.0",
"fontfaceobserver": "2.3.0",
"formik": "2.2.9",
"formik-mui": "5.0.0-alpha.0",
"geojson-utils": "1.1.0",
Expand Down Expand Up @@ -166,5 +164,6 @@
"statements": 90
}
}
}
},
"packageManager": "[email protected]"
}
9 changes: 0 additions & 9 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import chalk from 'chalk';
import * as React from 'react';
import ReactDOM, { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux';
import FontFaceObserver from 'fontfaceobserver';

// Use consistent styling
import 'sanitize.css/sanitize.css';
Expand All @@ -35,14 +34,6 @@ import { Tolgee, DevTools, TolgeeProvider, FormatSimple } from '@tolgee/react';
// Initialize languages
import './locales/i18n';

// Observe loading of Inter (to remove 'Inter', remove the <link> tag in
// the index.html file and this observer)
const openSansObserver = new FontFaceObserver('Inter', {});

// When Inter is loaded, add a font-family using Inter to the body
openSansObserver.load().then(() => {
document.body.classList.add('fontLoaded');
});
const { store } = configureAppStore();
// console.log({store})
const container = document.getElementById('root');
Expand Down
Loading

0 comments on commit 29a9ac2

Please sign in to comment.