From 13c1faed64fb24d8ff3055e56a9813e6c4880821 Mon Sep 17 00:00:00 2001
From: Cursor Agent
Date: Mon, 27 Apr 2026 22:47:18 +0000
Subject: [PATCH 1/2] Improve metadata, navigation state handling, and content
links
Co-authored-by: Jay Wu
---
src/app/layout.tsx | 6 ++-
src/app/terms-of-service/page.tsx | 8 ++--
src/components/board/candidates.tsx | 4 +-
src/components/header/mobile-nav.tsx | 10 ++---
src/components/header/use-nav-notify.ts | 15 +++++---
src/components/projects/projects-data.ts | 1 -
src/components/projects/projects-grid.tsx | 45 +++++++++++++----------
7 files changed, 51 insertions(+), 38 deletions(-)
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 8adb358..863578f 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -10,10 +10,12 @@ import { Inter } from "next/font/google";
export const metadata: Metadata = {
title: "ICS Student Council",
- description: "",
+ description:
+ "The ICS Student Council at UC Irvine supports students through events, projects, and community initiatives.",
openGraph: {
title: "ICS Student Council",
- description: "",
+ description:
+ "The ICS Student Council at UC Irvine supports students through events, projects, and community initiatives.",
url: "https://www.icssc.club",
// images: [
// {
diff --git a/src/app/terms-of-service/page.tsx b/src/app/terms-of-service/page.tsx
index e6dd0d8..d5f6751 100644
--- a/src/app/terms-of-service/page.tsx
+++ b/src/app/terms-of-service/page.tsx
@@ -794,11 +794,11 @@ export default function Page() {
Policy:{" "}
- https://studentcouncil.ics.uci.edu/privacy-policy
+ https://www.icssc.club/privacy-policy
. By using the Services, you agree to be bound by our Privacy Policy,
@@ -1114,11 +1114,11 @@ export default function Page() {
us at icssc@uci.edu. If you have any
questions regarding privacy, please read our Privacy Policy:{" "}
- https://studentcouncil.ics.uci.edu/privacy-policy
+ https://www.icssc.club/privacy-policy
.
diff --git a/src/components/board/candidates.tsx b/src/components/board/candidates.tsx
index fd8ec2d..9211a64 100644
--- a/src/components/board/candidates.tsx
+++ b/src/components/board/candidates.tsx
@@ -9,8 +9,8 @@ import { Dialog, DialogContent, DialogTitle } from "@/components/ui/dialog";
function StatementText({ text }: { text: string }) {
return (
<>
- {text.split("\n\n").map((p) => (
- {p}
+ {text.split("\n\n").map((paragraph, index) => (
+ {paragraph}
))}
>
);
diff --git a/src/components/header/mobile-nav.tsx b/src/components/header/mobile-nav.tsx
index f7d29f4..7da06a7 100644
--- a/src/components/header/mobile-nav.tsx
+++ b/src/components/header/mobile-nav.tsx
@@ -20,8 +20,8 @@ export function MobileNav() {
const [expandedItems, setExpandedItems] = useState([]);
const boardNotifyDismissed = useNavNotifyDismissed("/board");
- const toggleMenu = () => {
- setOpen((prev) => !prev);
+ const closeMenu = () => {
+ setOpen(false);
};
const toggleExpand = (name: string) => {
@@ -48,7 +48,7 @@ export function MobileNav() {
}, []);
return (
-