From c05cc1a8812f6a4c1da5d9884eb60ebfcdd48e68 Mon Sep 17 00:00:00 2001 From: Mateus Elias Date: Wed, 13 Sep 2023 12:03:07 -0300 Subject: [PATCH] fix(packages/mui-joy/src/GlobalStyles): ensure compatibility with RSC --- packages/mui-joy/src/GlobalStyles/GlobalStyles.tsx | 12 ++++++++++++ packages/mui-joy/src/GlobalStyles/index.tsx | 12 +----------- 2 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 packages/mui-joy/src/GlobalStyles/GlobalStyles.tsx diff --git a/packages/mui-joy/src/GlobalStyles/GlobalStyles.tsx b/packages/mui-joy/src/GlobalStyles/GlobalStyles.tsx new file mode 100644 index 00000000000000..6ea9e7f8c37fd3 --- /dev/null +++ b/packages/mui-joy/src/GlobalStyles/GlobalStyles.tsx @@ -0,0 +1,12 @@ +'use client'; +import * as React from 'react'; +import { GlobalStyles as SystemGlobalStyles, GlobalStylesProps } from '@mui/system'; +import defaultTheme from '../styles/defaultTheme'; +import THEME_ID from '../styles/identifier'; +import { Theme } from '../styles/types'; + +function GlobalStyles(props: GlobalStylesProps) { + return ; +} + +export default GlobalStyles; diff --git a/packages/mui-joy/src/GlobalStyles/index.tsx b/packages/mui-joy/src/GlobalStyles/index.tsx index 238d10b773cfb2..10f31e4f54e205 100644 --- a/packages/mui-joy/src/GlobalStyles/index.tsx +++ b/packages/mui-joy/src/GlobalStyles/index.tsx @@ -1,11 +1 @@ -import * as React from 'react'; -import { GlobalStyles as SystemGlobalStyles, GlobalStylesProps } from '@mui/system'; -import defaultTheme from '../styles/defaultTheme'; -import THEME_ID from '../styles/identifier'; -import { Theme } from '../styles/types'; - -function GlobalStyles(props: GlobalStylesProps) { - return ; -} - -export default GlobalStyles; +export * from './GlobalStyles';