lint, css polish, yarn lock, fix some warning

This commit is contained in:
Jorik Schellekens
2020-09-01 10:44:26 +02:00
parent 21e5435720
commit 3372fccc0a
5 changed files with 46 additions and 51 deletions
+5 -3
View File
@@ -22,6 +22,8 @@ import MatrixTile from './components/MatrixTile';
import Tile from './components/Tile';
import LinkRouter from './pages/LinkRouter';
import './App.scss';
import GlobalContext from './contexts/GlobalContext';
/* eslint-disable no-restricted-globals */
@@ -29,15 +31,15 @@ import GlobalContext from './contexts/GlobalContext';
const App: React.FC = () => {
let page = (
<>
<CreateLinkTile /> <hr />{' '}
<CreateLinkTile />
<hr />
</>
);
if (location.hash) {
console.log(location.hash);
if (location.hash.startsWith('#/')) {
page = <LinkRouter link={location.hash.slice(2)} />;
} else {
console.log('asdfadf');
page = (
<Tile>
Links should be in the format {location.host}/#/{'<'}