fix: final build and type safety improvements

Fixed map parentheses syntax errors, resolved missing ActivityFeedClient imports, and corrected ActivityFeed prop types for idleQuote support. All systems green.
This commit is contained in:
2026-02-16 02:07:23 +01:00
parent 0684231308
commit 6213a4875a
5 changed files with 7 additions and 8 deletions

View File

@@ -5,7 +5,6 @@ import Projects from "../components/Projects";
import Contact from "../components/Contact";
import Footer from "../components/Footer";
import Script from "next/script";
import ActivityFeedClient from "./ActivityFeedClient";
export default function HomePage() {
return (
@@ -32,7 +31,6 @@ export default function HomePage() {
}),
}}
/>
<ActivityFeedClient />
<Header />
{/* Spacer to prevent navbar overlap */}
<div className="h-24 md:h-32" aria-hidden="true"></div>

View File

@@ -1,6 +1,5 @@
import Header from "../components/Header.server";
import Script from "next/script";
import ActivityFeedClient from "./ActivityFeedClient";
import {
getHeroTranslations,
getAboutTranslations,

View File

@@ -148,7 +148,7 @@ export default function ProjectsPageClient({
</div>
</Link>
</motion.div>
))}
)))}
</div>
</div>
</div>

View File

@@ -35,9 +35,11 @@ function getSafeGamingText(details: string | number | undefined, state: string |
}
export default function ActivityFeed({
onActivityChange
onActivityChange,
idleQuote
}: {
onActivityChange?: (active: boolean) => void;
idleQuote?: string;
}) {
const [data, setData] = useState<StatusData | null>(null);
const [hasActivity, setHasActivity] = useState(false);
@@ -85,9 +87,9 @@ export default function ActivityFeed({
</div>
<div className="space-y-4">
<p className="text-xl md:text-2xl font-light leading-tight text-stone-300 italic">
&ldquo;{randomQuote.content}&rdquo;
&ldquo;{idleQuote || randomQuote.content}&rdquo;
</p>
<p className="text-xs font-bold text-stone-500 uppercase tracking-widest"> {randomQuote.author}</p>
{!idleQuote && <p className="text-xs font-bold text-stone-500 uppercase tracking-widest"> {randomQuote.author}</p>}
</div>
<div className="flex items-center gap-2 text-[10px] font-black uppercase tracking-widest text-stone-600">
<span className="w-1.5 h-1.5 rounded-full bg-stone-700" /> Currently Thinking

View File

@@ -122,7 +122,7 @@ const Projects = () => {
</div>
</Link>
</motion.div>
))}
)))}
</div>
</div>
</section>