Upgrade vite and react-router (#778)

| Package                           | From | To       |
|----------------------------------|-----------|---------|
react-router                       | ( new ) | 7.8.2 |
react-router-dom             | 6.22.3 | ( del ) |
@vitejs/plugin-react-swc | 3.10.2 | 4.0.1 |
vite                                      | 6.3.5   | 7.1.4 |
This commit is contained in:
Marc Brooks
2025-09-04 05:20:01 -05:00
committed by GitHub
parent 1dda6184da
commit 5f3dd89d55
35 changed files with 136 additions and 147 deletions

View File

@@ -1,4 +1,5 @@
import { useLoaderData, useRevalidator } from "react-router-dom";
import { useLoaderData, useRevalidator } from "react-router";
import type { LoaderFunction } from "react-router";
import { LuMonitorSmartphone } from "react-icons/lu";
import { ArrowRightIcon } from "@heroicons/react/16/solid";
import { useInterval } from "usehooks-ts";
@@ -16,7 +17,7 @@ interface LoaderData {
user: User;
}
const loader = async () => {
const loader: LoaderFunction = async () => {
const user = await checkAuth();
try {