Update package versions for improved stability

This commit updates the versions of "@types/node", "react-hook-form", and "@tanstack/react-query-next-experimental" packages throughout the application. These updates include minor version changes that improve the stability and compatibility of these libraries within the app.
This commit is contained in:
giancarlo
2024-05-05 14:39:31 +07:00
parent d7d3693f41
commit ca4932e351
13 changed files with 105 additions and 90 deletions

View File

@@ -33,7 +33,7 @@
"lucide-react": "^0.376.0",
"next": "14.2.3",
"react": "18.3.1",
"react-hook-form": "^7.51.3",
"react-hook-form": "^7.51.4",
"react-i18next": "^14.1.1",
"zod": "^3.23.6"
},

View File

@@ -16,7 +16,7 @@
"@kit/eslint-config": "workspace:*",
"@kit/prettier-config": "workspace:*",
"@kit/tsconfig": "workspace:*",
"@types/node": "^20.12.7"
"@types/node": "^20.12.8"
},
"eslintConfig": {
"root": true,

View File

@@ -24,7 +24,7 @@
"@kit/prettier-config": "workspace:*",
"@kit/tsconfig": "workspace:*",
"@kit/ui": "workspace:^",
"@types/node": "^20.12.7",
"@types/node": "^20.12.8",
"zod": "^3.23.6"
},
"eslintConfig": {

View File

@@ -19,7 +19,7 @@
"@kit/prettier-config": "workspace:*",
"@kit/tsconfig": "workspace:*",
"@kit/ui": "workspace:^",
"@types/node": "^20.12.7",
"@types/node": "^20.12.8",
"wp-types": "^3.65.0"
},
"eslintConfig": {

View File

@@ -42,7 +42,7 @@
"next-themes": "0.3.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-hook-form": "^7.51.3",
"react-hook-form": "^7.51.4",
"react-i18next": "^14.1.1",
"sonner": "^1.4.41",
"zod": "^3.23.6"

View File

@@ -28,7 +28,7 @@
"next": "14.2.3",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-hook-form": "^7.51.3",
"react-hook-form": "^7.51.4",
"zod": "^3.23.6"
},
"exports": {

View File

@@ -33,7 +33,7 @@
"@types/react": "^18.3.1",
"lucide-react": "^0.376.0",
"next": "14.2.3",
"react-hook-form": "^7.51.3",
"react-hook-form": "^7.51.4",
"react-i18next": "^14.1.1",
"sonner": "^1.4.41",
"zod": "^3.23.6"

View File

@@ -42,7 +42,7 @@
"next": "14.2.3",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-hook-form": "^7.51.3",
"react-hook-form": "^7.51.4",
"react-i18next": "^14.1.1",
"sonner": "^1.4.41",
"zod": "^3.23.6"

View File

@@ -51,7 +51,7 @@
"next-themes": "0.3.0",
"prettier": "^3.2.5",
"react-day-picker": "^8.10.1",
"react-hook-form": "^7.51.3",
"react-hook-form": "^7.51.4",
"react-i18next": "^14.1.1",
"sonner": "^1.4.41",
"tailwindcss": "3.4.3",

View File

@@ -10,6 +10,7 @@ import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuSub,
DropdownMenuSubContent,
DropdownMenuSubTrigger,
@@ -94,19 +95,33 @@ export function SubMenuModeToggle() {
);
return (
<DropdownMenuSub>
<DropdownMenuSubTrigger>
<span className={'flex w-full items-center space-x-2'}>
<Icon theme={resolvedTheme} />
<>
<DropdownMenuSub>
<DropdownMenuSubTrigger
className={
'hidden w-full items-center justify-between space-x-2 lg:flex'
}
>
<span className={'flex space-x-2'}>
<Icon theme={resolvedTheme} />
<span>
<Trans i18nKey={'common:theme'} />
<span>
<Trans i18nKey={'common:theme'} />
</span>
</span>
</span>
</DropdownMenuSubTrigger>
</DropdownMenuSubTrigger>
<DropdownMenuSubContent>{MenuItems}</DropdownMenuSubContent>
</DropdownMenuSub>
<DropdownMenuSubContent>{MenuItems}</DropdownMenuSubContent>
</DropdownMenuSub>
<div className={'lg:hidden'}>
<DropdownMenuLabel>
<Trans i18nKey={'common:theme'} />
</DropdownMenuLabel>
{MenuItems}
</div>
</>
);
}