feat: email conflict tip in widget login
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user