mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-20 10:14:18 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user