Skip to content

Commit b433105

Browse files
committed
fix: merge commit
2 parents 885106b + 403f9e0 commit b433105

File tree

15 files changed

+482
-35
lines changed

15 files changed

+482
-35
lines changed

package-lock.json

Lines changed: 125 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"vite-plugin-svgr": "^4.2.0"
5454
},
5555
"scripts": {
56-
"lint": "echo .",
56+
"lint": "eslint --fix . --ext .tsx",
5757
"test": "node ./test/RunTests.js",
5858
"build": "vite build",
5959
"start": "vite",

src/components/NavigationBar/AppThemeToggle.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
import { useAppTheme } from "../../context/AppThemeContext";
2+
import { useTranslation } from "react-i18next";
3+
24

35
const AppThemeToggle = () => {
46
// context for handling app theme
57
const { appTheme, toggleAppTheme } = useAppTheme()
68

9+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
10+
const {t} = useTranslation();
11+
712
const handleClick = () => {
813
toggleAppTheme()
914
}
1015

1116
console.log(appTheme)
1217

1318
return <div>
14-
<button onClick={handleClick}>{appTheme}</button>
19+
<button onClick={handleClick}>${appTheme}</button>
1520
</div>
1621
}
1722

0 commit comments

Comments
 (0)