design nitpicks

This commit is contained in:
Jorik Schellekens
2020-09-16 13:58:14 +01:00
parent 0a8685360f
commit 1352feca21
14 changed files with 69 additions and 33 deletions
+4
View File
@@ -36,8 +36,12 @@ const App: React.FC = () => {
</>
);
// Some hacky uri decoding
location.href = decodeURIComponent(location.href);
const [hash, setHash] = useState(location.hash);
console.log(hash);
useEffect(() => (window.onhashchange = () => setHash(location.hash)), []);
if (hash) {