gabotorresruiz commented on code in PR #34144:
URL: https://github.com/apache/superset/pull/34144#discussion_r2205581290
##########
superset-frontend/packages/superset-ui-core/src/theme/types.ts:
##########
@@ -33,18 +33,33 @@ import { Theme } from '.';
export type AntdTokens = ReturnType<typeof antdThemeImport.getDesignToken>;
export type AntdThemeConfig = ThemeConfig;
+/**
+ * A combination of theme modes that can be used in theme config.
+ * This is used to define which algorithms are allow to be applied together.
+ */
+export type ThemeAlgorithmCombination = (
Review Comment:
Done!
##########
superset-frontend/packages/superset-ui-core/src/theme/Theme.tsx:
##########
@@ -160,7 +164,7 @@ export class Theme {
* Dark mode should be specified via the algorithm property in the config
*/
setConfig(config: AnyThemeConfig): void {
- const antdConfig = normalizeThemeConfig(config);
+ const antdConfig: ThemeConfig = normalizeThemeConfig(config);
Review Comment:
Done!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]