feat: email conflict tip in widget login

This commit is contained in:
Tristan Yang
2023-03-14 21:58:28 +08:00
parent 184191643a
commit b7882fb890
2 changed files with 20 additions and 1 deletions
+4
View File
@@ -6,6 +6,7 @@ import './assets/index.css';
import store from "./app/store";
import './i18n';
import { isDarkMode } from "./common/utils";
import { Toaster } from "react-hot-toast";
const root = ReactDOM.createRoot(document.getElementById("root") as HTMLElement);
const hostId = new URLSearchParams(location.search).get("host") || 1;
@@ -18,6 +19,9 @@ if (isDarkMode()) {
root.render(
hostId ? <Provider store={store}>
<WidgetProvider>
<Toaster toastOptions={{
className: "dark:!bg-gray-800 dark:!text-gray-50"
}} />
<Widget hostId={Number(hostId)} />
</WidgetProvider>
</Provider> : null