Skip to content

Commit 101d4bc

Browse files
committed
Merge remote-tracking branch 'upstream/main' into feat/themes-page-implementation
2 parents 0f96eb2 + 02f687f commit 101d4bc

File tree

15 files changed

+491
-16
lines changed

15 files changed

+491
-16
lines changed

package-lock.json

Lines changed: 155 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@
2323
"@typescript-eslint/eslint-plugin": "^5.60.1",
2424
"@vitejs/plugin-react": "^4.2.1",
2525
"file-saver": "^2.0.5",
26+
"i18next-browser-languagedetector": "^8.0.0",
27+
"i18next-http-backend": "^2.6.1",
2628
"jszip": "^3.10.1",
2729
"lucide-react": "^0.376.0",
2830
"prop-types": "^15.8.1",
2931
"react": "^18.2.0",
3032
"react-chatbotify": "^2.0.0-beta.3",
3133
"react-dom": "^18.2.0",
34+
"react-i18next": "^15.0.1",
3235
"react-loading-skeleton": "^3.4.0",
3336
"react-router-dom": "^6.2.2",
3437
"uuid": "^9.0.1",

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)