ui: fix duplicate global styles
This commit is contained in:
parent
4e1c07d36e
commit
72983e8385
2 changed files with 8 additions and 1 deletions
|
@ -10,10 +10,11 @@ import AuthenticationRouter from '@/routers/AuthenticationRouter';
|
||||||
import { SiteSettings } from '@/state/settings';
|
import { SiteSettings } from '@/state/settings';
|
||||||
import ProgressBar from '@/components/elements/ProgressBar';
|
import ProgressBar from '@/components/elements/ProgressBar';
|
||||||
import NotFound from '@/components/screens/NotFound';
|
import NotFound from '@/components/screens/NotFound';
|
||||||
import tw, { GlobalStyles as TailwindGlobalStyles } from 'twin.macro';
|
import tw from 'twin.macro';
|
||||||
import GlobalStylesheet from '@/assets/css/GlobalStylesheet';
|
import GlobalStylesheet from '@/assets/css/GlobalStylesheet';
|
||||||
import { history } from '@/components/history';
|
import { history } from '@/components/history';
|
||||||
import { setupInterceptors } from '@/api/interceptors';
|
import { setupInterceptors } from '@/api/interceptors';
|
||||||
|
import TailwindGlobalStyles from '@/components/GlobalStyles';
|
||||||
|
|
||||||
const ChunkedAdminRouter = lazy(() => import(/* webpackChunkName: "admin" */'@/routers/AdminRouter'));
|
const ChunkedAdminRouter = lazy(() => import(/* webpackChunkName: "admin" */'@/routers/AdminRouter'));
|
||||||
|
|
||||||
|
|
6
resources/scripts/components/GlobalStyles.tsx
Normal file
6
resources/scripts/components/GlobalStyles.tsx
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import React from 'react';
|
||||||
|
import { GlobalStyles } from 'twin.macro';
|
||||||
|
|
||||||
|
export default () => {
|
||||||
|
return <GlobalStyles/>;
|
||||||
|
};
|
Loading…
Reference in a new issue