fix: prevent occasional duplication of the MUI v5 prefix

Signed-off-by: Rajib Quayum <rajibq@users.noreply.github.com>
This commit is contained in:
Rajib Quayum
2026-04-03 09:29:06 -04:00
parent 51ee29bac7
commit 2c541a782b
@@ -47,6 +47,9 @@ export interface UnifiedThemeProviderProps {
* This call needs to be in the same module as the `UnifiedThemeProvider` to ensure that it doesn't get removed by tree shaking
*/
ClassNameGenerator.configure(componentName => {
if ((componentName ?? '').startsWith('v5-')) {
return componentName;
}
return `v5-${componentName}`;
});