Skip to content

Commit 71cc66e

Browse files
committed
refactor: dynamically import wortlizer component and change to ts-hooks
1 parent 2839be6 commit 71cc66e

File tree

4 files changed

+28
-18
lines changed

4 files changed

+28
-18
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"dependencies": {
1818
"@radix-ui/react-slot": "^1.2.3",
1919
"@tailwindcss/postcss": "^4.1.13",
20-
"@uidotdev/usehooks": "^2.4.1",
2120
"@vercel/analytics": "^1.5.0",
2221
"class-variance-authority": "^0.7.1",
2322
"clsx": "^2.1.1",
@@ -30,7 +29,8 @@
3029
"react-dom": "^19.1.1",
3130
"tailwind-merge": "^3.3.1",
3231
"tailwindcss": "^4.1.13",
33-
"tw-animate-css": "^1.3.8"
32+
"tw-animate-css": "^1.3.8",
33+
"usehooks-ts": "^3.1.1"
3434
},
3535
"devDependencies": {
3636
"@eslint/eslintrc": "^3",

src/components/WordForm.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client'
2+
13
import { Button } from '@/components/ui/Button'
24
import { Input } from '@/components/ui/Input'
35
import { useState } from 'react'

src/components/Wortilizer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { WortschatzEntry, Wortschatz } from '@/types/wortilizer.types'
66
import { Genders, WordsInfo } from 'german-words-dict'
77
import { getGenderGermanWord } from 'german-words'
88
import GermanWordsList from 'german-words-dict/dist/words.json'
9-
import { useLocalStorage } from '@uidotdev/usehooks'
9+
import { useLocalStorage } from 'usehooks-ts'
1010
import { moveIndexToFirst } from '@/lib/array'
1111

1212
const genderArticles: Record<Genders, WortschatzEntry['article']> = {

0 commit comments

Comments
 (0)