From 5950dc17413982aa2f3a9b9394a80bcc11c56deb Mon Sep 17 00:00:00 2001 From: alyssalee06 Date: Thu, 30 Jul 2026 16:26:19 -0400 Subject: [PATCH] Fix build warnings: dead imports, security, and accessibility - Footer.js: add rel="noreferrer" to all target="_blank" links (security), replace onClick-only tags with proper href links (accessibility), add alt text to Medium icon image - ArmorEvents.js: remove unused react-router import block, unused route imports (databricksPath, jan2026Path, feb2026Path), and nextEventIndex - Main.js: remove unused useEffect, Router, BrowserRouter, FaBriefcase, FaLanguage, communityJobsPath, communityPartnershipsPath, communityRegionalHubsPath, communityAcademyOverviewPath imports Co-Authored-By: Claude Sonnet 4.6 --- .../landing_page_armor/ArmorEvents.js | 14 -- .../landing_page/landing_page_armor/Main.js | 10 +- .../landing_page_components/Footer.js | 210 +++--------------- 3 files changed, 38 insertions(+), 196 deletions(-) diff --git a/frontend/src/landing_page/landing_page_armor/ArmorEvents.js b/frontend/src/landing_page/landing_page_armor/ArmorEvents.js index 8e77919..6c51f36 100644 --- a/frontend/src/landing_page/landing_page_armor/ArmorEvents.js +++ b/frontend/src/landing_page/landing_page_armor/ArmorEvents.js @@ -28,23 +28,12 @@ import { anoteMindstoneJuneNYCPath, bttFallPath, paleBlueDotPath, - databricksPath, aiDayFall2025Path, aiAcademySpring2026Path, holidayPartyPath, - jan2026Path, - feb2026Path, worldCupPartyPath, summerPartyPath, } from "../../constants/RouteConstants"; -import { - BrowserRouter as Router, - Routes, - Route, - Link, - useLocation, - BrowserRouter, -} from "react-router-dom"; // ─── Google Calendar live feed ─────────────────────────────────────────────── // 1. Create a Google Calendar for Anote events and make it public: @@ -418,9 +407,6 @@ const ArmorEvents = () => { .map(event => ({ ...event, dateObject: parseDate(event.date) })) .sort((a, b) => b.dateObject - a.dateObject); - // const today = new Date(); - const nextEventIndex = sortedEvents.findIndex(event => event.dateObject >= today); - const [query, setQuery] = useState(""); const [filterType, setFilterType] = useState("all"); const [viewMode, setViewMode] = useState("cards"); // "cards" | "calendar" diff --git a/frontend/src/landing_page/landing_page_armor/Main.js b/frontend/src/landing_page/landing_page_armor/Main.js index f06e385..25a6ac1 100644 --- a/frontend/src/landing_page/landing_page_armor/Main.js +++ b/frontend/src/landing_page/landing_page_armor/Main.js @@ -1,11 +1,9 @@ -import React, { useState, useEffect } from "react"; +import React, { useState } from "react"; import { - BrowserRouter as Router, Routes, Route, Link, useLocation, - BrowserRouter, } from "react-router-dom"; import { FaHome, @@ -14,29 +12,23 @@ import { FaNewspaper, FaGlobe, FaRobot, - FaBriefcase, FaBook, FaUserCircle, FaHandshake, FaCoffee, - FaLanguage, } from "react-icons/fa"; import { communityHomePath, communityEventsPath, communityMembersPath, communityNewsPath, - communityJobsPath, communityResourcesPath, communityContentPath, - communityPartnershipsPath, uploadPath, communityCoffeeChatsPath, communityReferralsPath, - communityRegionalHubsPath, communityAgentRegistryPath, communityAcademyPath, - communityAcademyOverviewPath } from "../../constants/RouteConstants"; // ← adjust import path import ArmorEvents from "./ArmorEvents"; import ArmorMain from "./ArmorMain"; diff --git a/frontend/src/landing_page/landing_page_components/Footer.js b/frontend/src/landing_page/landing_page_components/Footer.js index 97a588d..456e551 100644 --- a/frontend/src/landing_page/landing_page_components/Footer.js +++ b/frontend/src/landing_page/landing_page_components/Footer.js @@ -1,5 +1,4 @@ import React from "react"; -import { Link } from "react-router-dom"; function Footer() { return ( @@ -8,7 +7,7 @@ function Footer() {
@@ -186,7 +130,7 @@ function Footer() { Text Classification @@ -195,7 +139,7 @@ function Footer() { Named Entity Recognition @@ -204,7 +148,7 @@ function Footer() { Question and Answering @@ -213,7 +157,7 @@ function Footer() { Data Validation @@ -222,7 +166,7 @@ function Footer() { Few Shot Learning @@ -238,64 +182,19 @@ function Footer() { @@ -311,55 +210,28 @@ function Footer() { Blog
  • - - window.location.assign( - "https://anote.ai/" + "/faqs#FAQs" - ) - } - > - Labeling FAQs - + Labeling FAQs
  • Press
  • - - window.location.assign( - "https://anote.ai/" + "/contact#Contact" - ) - } - > - Contact - + Contact
  • - - window.location.assign( - "https://anote.ai/" + "/careers#Careers" - ) - } - > - Careers - + Careers
  • @@ -373,39 +245,31 @@ function Footer() { href="https://twitter.com/knyttneve" rel="noopener noreferrer" className="text-anoteblack-100 ml-1" - target="_blank" + target="_blank" rel="noreferrer" > All rights reserved - */} - - window.location.assign( - "https://anote.ai/" + "/privacypolicy#Privacy Policy" - ) - } - > - - Privacy Policy - - + - Privacy Policy +

    Medium