File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
packages/devextreme-cli/src/templates/react/application/src Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ function getCurrentTheme() {
1414
1515function toggleTheme ( prevTheme < %= #isTypeScript% > : string < %= / i s T y p e S c r i p t % > ) {
1616 const isCurrentThemeDark = prevTheme === 'dark' ;
17-
1817 const newTheme = getNextTheme ( prevTheme ) ;
1918
2019 document . body . classList . replace (
@@ -38,7 +37,6 @@ function toggleTheme(prevTheme<%=#isTypeScript%>: string<%=/isTypeScript%>) {
3837export function useThemeContext ( ) {
3938 const [ theme , setTheme ] = useState ( getCurrentTheme ( ) ) ;
4039 const switchTheme = useCallback ( ( ) => setTheme ( ( currentTheme ) => toggleTheme ( currentTheme ) ) , [ ] ) ;
41-
4240 const isDark = useCallback ( ( ) < %= #isTypeScript% > : boolean < %= / i s T y p e S c r i p t % > = > {
4341 return currentTheme === 'dark' ;
4442 } , [ ] ) ;
You can’t perform that action at this time.
0 commit comments