mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 10:15:26 +00:00
Fix: Add default for font combo box.
Don't pass dispatcher in, just provide it globally. Fix: Allow clicking through to profile from server sidebar.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { store } from ".";
|
||||
import localForage from "localforage";
|
||||
import { Provider } from "react-redux";
|
||||
import { Children } from "../types/Preact";
|
||||
import { dispatch, State, store } from ".";
|
||||
import { useEffect, useState } from "preact/hooks";
|
||||
|
||||
interface Props {
|
||||
@@ -15,7 +15,7 @@ export default function State(props: Props) {
|
||||
localForage.getItem("state")
|
||||
.then(state => {
|
||||
if (state !== null) {
|
||||
store.dispatch({ type: "__INIT", state });
|
||||
dispatch({ type: "__INIT", state: state as State });
|
||||
}
|
||||
|
||||
setLoaded(true);
|
||||
|
||||
Reference in New Issue
Block a user