From 1b2eb0d97264fb3216de2370490b540a836b01b0 Mon Sep 17 00:00:00 2001 From: saksham vitwekar Date: Fri, 3 Apr 2026 01:54:23 +0530 Subject: [PATCH] Fixed the white side menu bug --- next.config.ts | 1 + src/app/(calculators)/calculators/page.tsx | 2 +- src/app/(calculators)/layout.tsx | 7 ++++++- src/app/page.tsx | 4 +++- src/app/utils/getQuote.tsx | 6 +++--- 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/next.config.ts b/next.config.ts index 66e1566..f4b3dfc 100644 --- a/next.config.ts +++ b/next.config.ts @@ -3,6 +3,7 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { /* config options here */ reactCompiler: true, + allowedDevOrigins: ['192.168.29.245'] }; export default nextConfig; diff --git a/src/app/(calculators)/calculators/page.tsx b/src/app/(calculators)/calculators/page.tsx index ac6a261..67de5e4 100644 --- a/src/app/(calculators)/calculators/page.tsx +++ b/src/app/(calculators)/calculators/page.tsx @@ -55,7 +55,7 @@ export default function Calculators(){

Bookmarks: ({bookmarks?.length})

-
+
{bookmarks?.length !== 0 ? bookmarks?.map(e => { console.log(e.id); const calc = CalculatorRegistry[e.section].calculators.find(c => c.id === e.id) diff --git a/src/app/(calculators)/layout.tsx b/src/app/(calculators)/layout.tsx index cdb4466..3a1ad05 100644 --- a/src/app/(calculators)/layout.tsx +++ b/src/app/(calculators)/layout.tsx @@ -3,7 +3,12 @@ import LayoutClient from "./layoutClient"; export default function CalculatorsLayout({children} : {children:React.ReactNode}){ return( <> - {children} + + + {children} + + + ) } \ No newline at end of file diff --git a/src/app/page.tsx b/src/app/page.tsx index f5f481e..b3a68b0 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,6 +2,8 @@ export default function Home(){ return( - <> + <> + + ); } \ No newline at end of file diff --git a/src/app/utils/getQuote.tsx b/src/app/utils/getQuote.tsx index 52e47c6..001b187 100644 --- a/src/app/utils/getQuote.tsx +++ b/src/app/utils/getQuote.tsx @@ -112,18 +112,18 @@ export default function GetQuote(){ const [quote, setQuote] = useState<{quote:string, author:string}>({quote:"", author:""}); useEffect(() => { setQuote(quotes[Math.floor(Math.random() * quotes.length)]); - }, []) + }, []); return(
-

+

{quote.quote}

-

{quote.author}

+

{quote.author}