Browse Source

🔧 Update for Next.js v13.2

🚀 Preparing for the next version with typedRoutes
🛠️ Refactor and optimize route handling
 Introduce 'Page' interface for route configuration
📦 Import necessary types and components
main
John Doe 1 year ago
parent
commit
d2b1042a2e
  1. BIN
      %project-for-job%Chisfis_Nextjs%ChisfisNextjs/chat_history/history.sqlite
  2. 12
      src/routers/types.ts
  3. 7
      src/shared/Navigation/style.scss

BIN
%project-for-job%Chisfis_Nextjs%ChisfisNextjs/chat_history/history.sqlite

12
src/routers/types.ts

@ -0,0 +1,12 @@
import type { Route as NextRoute } from "next";
import { ComponentType } from "react";
// Get ready to update to nextjs version 13.2 with X typedRoutes
export type Route<T = string> = NextRoute;
export type PathName = Route;
export interface Page {
path: PathName;
exact?: boolean;
component: ComponentType<Object>;
}

7
src/shared/Navigation/style.scss

@ -0,0 +1,7 @@
.menu-item {
&:hover {
.sub-menu {
display: block;
}
}
}
Loading…
Cancel
Save