feat: explicitly install idb + use react-router instead of react-router-dom

This commit is contained in:
2025-05-29 17:03:44 +02:00
parent 6be3aa07a1
commit 83c26bb94a
7 changed files with 18 additions and 10 deletions

View File

@ -1,5 +1,5 @@
import { type FC } from "react";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
import { createBrowserRouter, RouterProvider } from "react-router";
import IndexPage from "./pages/Index";
import LoginPage from "./pages/Login";

View File

@ -2,7 +2,7 @@ import { type LocalAccount } from "@/repository/account";
import { useAuth } from "@/store/auth";
import { CirclePlus, User } from "lucide-react";
import { useCallback, type FC } from "react";
import { Link, useLocation } from "react-router-dom";
import { Link, useLocation } from "react-router";
const AccountList: FC = () => {
const accounts = useAuth((state) => state.accounts);

View File

@ -7,7 +7,7 @@ import {
useLocation,
useNavigate,
useSearchParams,
} from "react-router-dom";
} from "react-router";
import BackgroundLayout from "./BackgroundLayout";
import { useOAuthContext } from "@/context/oauth";

View File

@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { Card, CardContent } from "@/components/ui/card";
import { Mail, Lock } from "lucide-react";
import { Link, useLocation } from "react-router-dom";
import { Link, useLocation } from "react-router";
import { Input } from "@/components/ui/input";
import { Button } from "@/components/ui/button";

View File

@ -1,6 +1,6 @@
import { Card, CardContent } from "@/components/ui/card";
import { Mail, Lock, User, Phone } from "lucide-react";
import { Link, useLocation } from "react-router-dom";
import { Link, useLocation } from "react-router";
import { Input } from "@/components/ui/input";
import { Button } from "@/components/ui/button";