Import assets and add PWA.

This commit is contained in:
Paul
2021-06-18 19:25:33 +01:00
parent 27eeb3acd2
commit e7d1ada13d
59 changed files with 1958 additions and 182 deletions

View File

@@ -1,6 +1,6 @@
import { store } from ".";
import localForage from "localforage";
import { Provider } from 'react-redux';
import { Provider } from "react-redux";
import { Children } from "../types/Preact";
import { useEffect, useState } from "preact/hooks";
@@ -12,7 +12,7 @@ async function loadState() {
}
interface Props {
children: Children
children: Children;
}
export default function State(props: Props) {
@@ -23,10 +23,6 @@ export default function State(props: Props) {
}, []);
if (!loaded) return null;
return (
<Provider store={store}>
{ props.children }
</Provider>
)
return <Provider store={store}>{props.children}</Provider>;
}