refactor: move ROUTES from @/lib/routes to @/router/routes
This commit is contained in:
@@ -17,7 +17,7 @@ import { useAuthState, useAuthDispatch } from "@/stores/auth/auth-context";
|
||||
import { useChatDispatch } from "@/stores/chat/chat-context";
|
||||
import { useUserDispatch } from "@/stores/user/user-context";
|
||||
import { useAuthGate } from "@/lib/auth/nextauth";
|
||||
import { ROUTES } from "@/lib/routes";
|
||||
import { ROUTES } from "@/router/routes";
|
||||
import { MobileShell } from "@/app/_components/core/mobile-shell";
|
||||
import { AuthPanel } from "@/app/auth/components/auth-panel";
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
|
||||
import { ROUTES } from "@/lib/routes";
|
||||
import { ROUTES } from "@/router/routes";
|
||||
|
||||
import { ChatMenuBar } from "./chat-menu-bar";
|
||||
import styles from "./chat-header.module.css";
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useEffect, useRef } from "react";
|
||||
|
||||
import { ROUTES } from "@/lib/routes";
|
||||
import { ROUTES } from "@/router/routes";
|
||||
import { SpAsyncUtil } from "@/utils/storage";
|
||||
import { useAuthDispatch } from "@/stores/auth/auth-context";
|
||||
import { useUserDispatch } from "@/stores/user/user-context";
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
*/
|
||||
import { useRouter } from "next/navigation";
|
||||
|
||||
import { ROUTES } from "@/lib/routes";
|
||||
import { ROUTES } from "@/router/routes";
|
||||
|
||||
import styles from "./quota-dialog.module.css";
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import { useRouter } from "next/navigation";
|
||||
|
||||
import { AuthStorage } from "@/data/storage/auth/auth_storage";
|
||||
import { StorageKeys } from "@/data/storage/storage_keys";
|
||||
import { ROUTES } from "@/lib/routes";
|
||||
import { ROUTES } from "@/router/routes";
|
||||
|
||||
interface DeepLinkPersistProps {
|
||||
deviceId: string;
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
import { useEffect } from "react";
|
||||
import Link from "next/link";
|
||||
|
||||
import { ROUTES } from "@/lib/routes";
|
||||
import { ROUTES } from "@/router/routes";
|
||||
|
||||
interface ErrorProps {
|
||||
error: Error & { digest?: string };
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import localFont from "next/font/local";
|
||||
import { SessionProvider } from "next-auth/react";
|
||||
import { SessionProvider } from "@/providers/session-provider";
|
||||
import "./globals.css";
|
||||
|
||||
import { RootProviders } from "@/providers/root-providers";
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
import Link from "next/link";
|
||||
|
||||
import { ROUTES } from "@/lib/routes";
|
||||
import { ROUTES } from "@/router/routes";
|
||||
|
||||
export default function NotFound() {
|
||||
return (
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@
|
||||
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
import { ROUTES } from "@/lib/routes";
|
||||
import { ROUTES } from "@/router/routes";
|
||||
|
||||
export default function Home() {
|
||||
redirect(ROUTES.splash);
|
||||
|
||||
@@ -21,7 +21,7 @@ import { useAuthState, useAuthDispatch } from "@/stores/auth/auth-context";
|
||||
import { useChatDispatch } from "@/stores/chat/chat-context";
|
||||
import { useUserDispatch } from "@/stores/user/user-context";
|
||||
import { facebookLogin, useAuthGate } from "@/lib/auth/nextauth";
|
||||
import { ROUTES } from "@/lib/routes";
|
||||
import { ROUTES } from "@/router/routes";
|
||||
import { LoadingIndicator } from "@/app/_components/core/loading-indicator";
|
||||
import styles from "./splash-button.module.css";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user