feat: google login

This commit is contained in:
Tristan Yang
2022-10-27 23:07:39 +08:00
parent 1987c257ba
commit c08bb8fb13
11 changed files with 89 additions and 53 deletions
+4 -4
View File
@@ -6,9 +6,9 @@ import './assets/index.css';
import store from "./app/store";
const root = ReactDOM.createRoot(document.getElementById("root") as HTMLElement);
const hostId = new URLSearchParams(location.search).get("host");
root.render(
<Provider store={store}>
<Widget />
</Provider>
hostId ? <Provider store={store}>
<Widget hostId={Number(hostId)} />
</Provider> : null
);