Skip to content

Commit 4e57fca

Browse files
PrisStrattonclaude
andcommitted
Fix favicon loading, remove unused code, use stable React keys
- Replace src/app/favicon.ico with src/app/icon.svg so Next.js App Router serves the N· cobalt dot mark correctly (browsers default to /favicon.ico, which was the old placeholder — icon.svg is auto-linked in <head>) - Remove manual <link rel="icon"> from layout.tsx (Next.js handles it via icon.svg) - Remove unused section() helper from privacy/page.tsx - Use faq.q as stable React key in carrier-rates/faq/page.tsx (was array index) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f142a09 commit 4e57fca

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/app/carrier-rates/faq/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ export default function CarrierRatesFAQ() {
9595
}}
9696
>
9797
<div style={{ maxWidth: "52rem" }}>
98-
{faqs.map((faq, i) => (
98+
{faqs.map((faq) => (
9999
<div
100-
key={i}
100+
key={faq.q}
101101
style={{
102102
borderBottom: "1px solid var(--rule)",
103103
padding: "2rem 0",

src/app/favicon.ico

-25.3 KB
Binary file not shown.

src/app/icon.svg

Lines changed: 5 additions & 0 deletions
Loading

src/app/layout.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ export default function RootLayout({
6666
}>) {
6767
return (
6868
<html lang="en" className={`${jetbrainsMono.variable} ${generalSans.variable} ${switzer.variable}`}>
69-
<head>
70-
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
71-
</head>
7269
<body>
7370
<div id="scroll-progress" aria-hidden="true" />
7471
<div className="grain-overlay" aria-hidden="true" />

src/app/privacy/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ export const metadata: Metadata = {
77
"NITSOF's privacy policy — what data we collect, how we use it, and how we protect it.",
88
};
99

10-
const section = (title: string, children: React.ReactNode) => ({ title, children });
11-
1210
export default function PrivacyPolicy() {
1311
return (
1412
<div style={{ background: "var(--cream)", color: "var(--ink)", paddingTop: "6rem" }}>

0 commit comments

Comments
 (0)