gabotorresruiz commented on code in PR #34536:
URL: https://github.com/apache/superset/pull/34536#discussion_r2254800260
##########
superset-frontend/packages/superset-ui-core/src/components/ThemeSubMenu/index.tsx:
##########
@@ -71,13 +36,13 @@ export interface ThemeSubMenuProps {
allowOSPreference?: boolean;
}
-export const ThemeSubMenu: React.FC<ThemeSubMenuProps> = ({
+export const useThemeMenuItems = ({
Review Comment:
Not sure if it's a good idea/best practice to call this component as if it
was a custom hook. We should save the prefix `use...` only for hooks
--
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]