Skip to content

Commit 730528d

Browse files
fix react ts
1 parent 890d312 commit 730528d

File tree

1 file changed

+1
-1
lines changed
  • packages/devextreme-cli/src/templates/react/application/src

1 file changed

+1
-1
lines changed

packages/devextreme-cli/src/templates/react/application/src/theme.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function getCurrentTheme() {
1212
return currentTheme;
1313
}
1414

15-
function toggleTheme(prevTheme) {
15+
function toggleTheme(prevTheme<%=#isTypeScript%>: string<%=/isTypeScript%>) {
1616
const isCurrentThemeDark = prevTheme === 'dark';
1717

1818
const newTheme = getNextTheme(prevTheme);

0 commit comments

Comments
 (0)