Skip to content

Commit 873b2a3

Browse files
committed
Update to latest rr7
1 parent 0ab6d2e commit 873b2a3

File tree

4 files changed

+56
-54
lines changed

4 files changed

+56
-54
lines changed

app/routes/$.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { useTranslation } from "react-i18next"
2-
import { useNavigate } from "react-router"
2+
import { href, useNavigate } from "react-router"
33
import { Icon } from "~/library/icon/Icon"
44
import { Link } from "~/library/link"
55

66
export default function Route404() {
77
const navigate = useNavigate()
88
const { t } = useTranslation()
9-
9+
const to = href("/")
1010
return (
1111
<div className="min-h-screen bg-gradient-to-b from-gray-50 to-gray-100 dark:from-blue-950 dark:to-blue-900 dark:text-white flex items-center justify-center p-4">
1212
<div className="max-w-2xl w-full text-center">
@@ -27,7 +27,7 @@ export default function Route404() {
2727
{t("navigation.back")}
2828
</button>
2929
<Link
30-
to="/"
30+
to={to}
3131
className="inline-flex cursor-pointer items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 transition-colors duration-300"
3232
>
3333
{t("navigation.home")}

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"dependencies": {
3030
"@epic-web/client-hints": "1.3.5",
3131
"@forge42/seo-tools": "1.3.0",
32-
"@react-router/node": "7.1.5",
32+
"@react-router/node": "7.2.0",
3333
"clsx": "2.1.1",
3434
"hono": "4.6.20",
3535
"i18next": "24.2.2",
@@ -40,7 +40,7 @@
4040
"react": "19.0.0",
4141
"react-dom": "19.0.0",
4242
"react-i18next": "15.4.0",
43-
"react-router": "7.1.5",
43+
"react-router": "7.2.0",
4444
"react-router-hono-server": "2.8.2",
4545
"remix-hono": "0.0.18",
4646
"remix-i18next": "7.0.2",
@@ -51,8 +51,8 @@
5151
"@babel/preset-typescript": "7.26.0",
5252
"@biomejs/biome": "1.9.4",
5353
"@dotenvx/dotenvx": "1.34.0",
54-
"@react-router/dev": "7.1.5",
55-
"@react-router/fs-routes": "7.1.5",
54+
"@react-router/dev": "7.2.0",
55+
"@react-router/fs-routes": "7.2.0",
5656
"@tailwindcss/vite": "4.0.3",
5757
"@testing-library/react": "16.2.0",
5858
"@types/node": "22.13.1",
@@ -86,6 +86,6 @@
8686
},
8787
"engines": {
8888
"node": ">=22.11.0",
89-
"pnpm": ">=9.14.2"
89+
"pnpm": ">=10.2.0"
9090
}
91-
}
91+
}

pnpm-lock.yaml

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

react-router.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import type { Config } from "@react-router/dev/config"
22

33
export default {
44
future: {
5+
//unstable_viteEnvironmentApi: true,
6+
//unstable_splitRouteModules: true,
57
unstable_optimizeDeps: true,
68
},
79
} satisfies Config

0 commit comments

Comments
 (0)