Fixed the white side menu bug
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -55,7 +55,7 @@ export default function Calculators(){
|
||||
<div className="card border-4 border-[#ed1b24] bg-white text-black w-full mt-5">
|
||||
<div className="card-body">
|
||||
<h2 className="card-title">Bookmarks: ({bookmarks?.length})</h2>
|
||||
<div className="grid grid-cols-2 gap-4">
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
{bookmarks?.length !== 0 ? bookmarks?.map(e => {
|
||||
console.log(e.id);
|
||||
const calc = CalculatorRegistry[e.section].calculators.find(c => c.id === e.id)
|
||||
|
||||
@@ -3,7 +3,12 @@ import LayoutClient from "./layoutClient";
|
||||
export default function CalculatorsLayout({children} : {children:React.ReactNode}){
|
||||
return(
|
||||
<>
|
||||
<LayoutClient>{children}</LayoutClient>
|
||||
<html data-theme="dark">
|
||||
<body>
|
||||
<LayoutClient>{children}</LayoutClient>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</>
|
||||
)
|
||||
}
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
export default function Home(){
|
||||
return(
|
||||
<></>
|
||||
<>
|
||||
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -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(
|
||||
<div className="mt-5">
|
||||
<div className="chat chat-start">
|
||||
<div className="chat-bubble bg-blue-200 text-blue-900 border-blue-200">
|
||||
<blockquote cite="https://www.huxley.net/bnw/four.html">
|
||||
<p>
|
||||
<p suppressHydrationWarning>
|
||||
{quote.quote}
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>—<cite>{quote.author}</cite></p>
|
||||
<p suppressHydrationWarning>—<cite suppressHydrationWarning>{quote.author}</cite></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user