File tree Expand file tree Collapse file tree 3 files changed +14
-21
lines changed
Expand file tree Collapse file tree 3 files changed +14
-21
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { AppProvider } from "@/context/AppContext";
1212import Navbar from "@/components/layout/Navbar" ;
1313import Footer from "@/components/layout/Footer" ;
1414import Banner from "@/components/ui/Banner" ;
15- import DrawCursorDemo from "@/components/common/DrawCursorDemo " ;
15+ import SplashCursorDemo from "@/components/common/SplashCursorDemo " ;
1616
1717const nunito = Nunito ( {
1818 variable : "--font-nunito" ,
@@ -99,7 +99,7 @@ export default function RootLayout({
9999 < ThemeProvider >
100100 < Toaster />
101101 < NProgressProvider />
102- < DrawCursorDemo />
102+ < SplashCursorDemo />
103103 < Banner />
104104 < Navbar />
105105 < MainContent > { children } </ MainContent >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ "use client" ;
2+ import React from "react" ;
3+ import { usePathname } from "next/navigation" ;
4+ import SplashCursor from "../nurui/splash-cursor" ;
5+
6+ const SplashCursorDemo = ( ) => {
7+ const pathName = usePathname ( ) ;
8+ if ( pathName . includes ( "docs" ) || pathName . includes ( "preview" ) ) return null ;
9+ return < SplashCursor /> ;
10+ } ;
11+
12+ export default SplashCursorDemo ;
You can’t perform that action at this time.
0 commit comments