@@ -14,7 +14,7 @@ export type DisplayProps = {
1414 className ?: string ;
1515} ;
1616
17- export const SwitchColorTheme = memo (
17+ export const DarkModeSwitch = memo (
1818 forwardRef < HTMLButtonElement , DisplayProps > ( ( props , ref ) => {
1919 const { className, ...rest } = props ;
2020
@@ -101,9 +101,9 @@ export const SwitchColorTheme = memo(
101101 } )
102102) ;
103103
104- SwitchColorTheme . displayName = symToStr ( { SwitchColorTheme } ) ;
104+ DarkModeSwitch . displayName = symToStr ( { DarkModeSwitch } ) ;
105105
106- export default SwitchColorTheme ;
106+ export default DarkModeSwitch ;
107107
108108const RadioGroup = memo ( ( props : { theme : "dark" | "light" | "system" } ) => {
109109 const { theme } = props ;
@@ -159,8 +159,8 @@ const RadioGroup = memo((props: { theme: "dark" | "light" | "system" }) => {
159159
160160RadioGroup . displayName = symToStr ( { RadioGroup } ) ;
161161
162- const { useTranslation, addSwitchColorThemeTranslations } = createComponentI18nApi ( {
163- "componentName" : "SwitchColorTheme" ,
162+ const { useTranslation, addDarkModeSwitchTranslations } = createComponentI18nApi ( {
163+ "componentName" : symToStr ( { DarkModeSwitch } ) ,
164164 "frMessages" : {
165165 /* spell-checker: disable */
166166 "display settings" : "Paramètres d'affichage" ,
@@ -174,7 +174,7 @@ const { useTranslation, addSwitchColorThemeTranslations } = createComponentI18nA
174174 }
175175} ) ;
176176
177- addSwitchColorThemeTranslations ( {
177+ addDarkModeSwitchTranslations ( {
178178 "lang" : "en" ,
179179 "messages" : {
180180 "display settings" : "Display settings" ,
@@ -187,7 +187,7 @@ addSwitchColorThemeTranslations({
187187 }
188188} ) ;
189189
190- addSwitchColorThemeTranslations ( {
190+ addDarkModeSwitchTranslations ( {
191191 "lang" : "es" ,
192192 "messages" : {
193193 /* spell-checker: disable */
@@ -198,4 +198,4 @@ addSwitchColorThemeTranslations({
198198 }
199199} ) ;
200200
201- export { addSwitchColorThemeTranslations } ;
201+ export { addDarkModeSwitchTranslations } ;
0 commit comments