diff --git a/webapp/packages/core-theming/src/useStyles.ts b/webapp/packages/core-theming/src/useStyles.ts index 4586e0ffad..9fa9cf21b0 100644 --- a/webapp/packages/core-theming/src/useStyles.ts +++ b/webapp/packages/core-theming/src/useStyles.ts @@ -19,6 +19,7 @@ import { applyComposes, ClassCollection, Composes } from './themeUtils'; export type BaseStyles = ClassCollection | Composes export type ThemeSelector = (theme: string) => Promise export type Style = BaseStyles | ThemeSelector +export type DynamicStyle = Style | boolean | undefined; /** * Changes styles depending on theme @@ -26,14 +27,14 @@ export type Style = BaseStyles | ThemeSelector * @param componentStyles styles array */ export function useStyles( - ...componentStyles: Array