From f94d507465e86d21822688d7c383ee8d6f18a2e5 Mon Sep 17 00:00:00 2001 From: DiegoAndai Date: Wed, 11 Dec 2024 13:38:43 -0300 Subject: [PATCH] Stray typescript adjustments --- packages/pigment-css-react/src/processors/sx.ts | 2 +- test/integration/mui-system/theme-scoping.test.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pigment-css-react/src/processors/sx.ts b/packages/pigment-css-react/src/processors/sx.ts index b0293aa8c58f93..0e5cc4fad5a220 100644 --- a/packages/pigment-css-react/src/processors/sx.ts +++ b/packages/pigment-css-react/src/processors/sx.ts @@ -52,7 +52,7 @@ export class SxProcessor extends BaseProcessor { } } else { const styleObjOrFn = values.get(sxStyle.ex.name); - cssText = this.processCss(styleObjOrFn, sxStyle); + cssText = this.processCss(styleObjOrFn, sxStyle) ?? ''; } const selector = this.elementClassName ? `${this.elementClassName}${this.asSelector}` diff --git a/test/integration/mui-system/theme-scoping.test.tsx b/test/integration/mui-system/theme-scoping.test.tsx index c75f9005c15e97..4965d7300f47e5 100644 --- a/test/integration/mui-system/theme-scoping.test.tsx +++ b/test/integration/mui-system/theme-scoping.test.tsx @@ -20,7 +20,7 @@ function LibThemeProvider({ children }: React.PropsWithChildren<{}>) { } function LibComponent() { - const theme = React.useContext(ThemeContext as React.Context); + const theme = React.useContext(ThemeContext as unknown as React.Context); return
; }