Skip to content

Commit

Permalink
Stray typescript adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndai committed Dec 11, 2024
1 parent 012cf26 commit f94d507
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/pigment-css-react/src/processors/sx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down
2 changes: 1 addition & 1 deletion test/integration/mui-system/theme-scoping.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function LibThemeProvider({ children }: React.PropsWithChildren<{}>) {
}

function LibComponent() {
const theme = React.useContext(ThemeContext as React.Context<LibTheme>);
const theme = React.useContext(ThemeContext as unknown as React.Context<LibTheme>);
return <div style={{ color: theme.palette.brand }} />;
}

Expand Down

0 comments on commit f94d507

Please sign in to comment.