From c1589daef655a502e239f730034e95077709fd2f Mon Sep 17 00:00:00 2001 From: lby Date: Thu, 12 Dec 2024 14:28:02 +0800 Subject: [PATCH] fix(web): widget ui style missing on built (#1304) --- web/src/app.tsx | 1 - web/src/main.tsx | 1 + web/src/published.tsx | 1 + web/src/publishedapp.tsx | 1 - 4 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/app.tsx b/web/src/app.tsx index 619c99e380..8d4a121d02 100644 --- a/web/src/app.tsx +++ b/web/src/app.tsx @@ -8,7 +8,6 @@ import { AuthProvider } from "./services/auth"; import { Provider as GqlProvider } from "./services/gql"; import { AppRoutes } from "./services/routing"; import { Provider as ThemeProvider } from "./services/theme"; -import "@reearth-widget-ui/styles/globals.css"; export default function App() { return ( diff --git a/web/src/main.tsx b/web/src/main.tsx index 2d27610e60..4329d58dcc 100644 --- a/web/src/main.tsx +++ b/web/src/main.tsx @@ -8,6 +8,7 @@ import App from "./app"; import { initialize as initializeSentry } from "./sentry"; import loadConfig from "./services/config"; import wdyr from "./wdyr"; +import "@reearth-widget-ui/styles/globals.css"; window.React = React; window.ReactDOM = ReactDOM; diff --git a/web/src/published.tsx b/web/src/published.tsx index de47df16c9..eb800d3a5d 100644 --- a/web/src/published.tsx +++ b/web/src/published.tsx @@ -7,6 +7,7 @@ import { createRoot } from "react-dom/client"; import App from "./publishedapp"; import loadConfig from "./services/config"; import "./wdyr"; +import "@reearth-widget-ui/styles/globals.css"; window.React = React; window.ReactDOM = ReactDOM; diff --git a/web/src/publishedapp.tsx b/web/src/publishedapp.tsx index 2d5f587761..030014d124 100644 --- a/web/src/publishedapp.tsx +++ b/web/src/publishedapp.tsx @@ -2,7 +2,6 @@ import PublishedPage from "@reearth/beta/pages/PublishedPage"; import { PublishedProvider as I18nProvider } from "./services/i18n"; import { PublishedAppProvider as ThemeProvider } from "./services/theme"; -import "@reearth-widget-ui/styles/globals.css"; export default function App() { return (