From 7372e727d09da9f0b4c704b6f8ae8b2f184a1032 Mon Sep 17 00:00:00 2001 From: Randi Mays <19175324+randimays@users.noreply.github.com> Date: Wed, 30 Oct 2024 20:04:52 -0500 Subject: [PATCH] Remove next component data attributes --- src/templates/common/banners/banner/index.tsx | 1 - .../common/banners/facilityBanner/index.tsx | 1 - .../common/banners/maintenanceBanner/index.tsx | 1 - src/templates/common/banners/promoBanner/index.tsx | 8 +------- src/templates/common/breadcrumbs/index.tsx | 5 +---- src/templates/common/button/index.tsx | 2 +- src/templates/common/commonAndPopular/index.tsx | 5 +---- src/templates/common/contentFooter/index.tsx | 1 - src/templates/common/featuredContent/index.tsx | 5 +---- src/templates/common/footer/index.tsx | 2 +- src/templates/common/googleMapsDirections/index.tsx | 1 - src/templates/common/header/index.tsx | 6 +----- src/templates/common/heading/index.tsx | 1 - src/templates/common/mediaImage/index.tsx | 1 - src/templates/common/preview/index.tsx | 5 +---- src/templates/common/relatedLinks/index.tsx | 5 +---- src/templates/common/secondaryButtonGroup/index.tsx | 12 ++---------- src/templates/common/socialLinks/index.tsx | 6 +----- src/templates/components/accordion/index.tsx | 2 +- src/templates/components/alert/index.tsx | 1 - src/templates/components/alertBlock/index.tsx | 1 - src/templates/components/audienceTopics/index.tsx | 5 +---- src/templates/components/collapsiblePanel/index.tsx | 2 -- src/templates/components/contactInfo/index.tsx | 5 +---- src/templates/components/expandableText/index.tsx | 6 +----- src/templates/components/healthServices/index.tsx | 1 - src/templates/components/hours/index.tsx | 5 +---- src/templates/components/imageAndStaticMap/index.tsx | 5 +---- src/templates/components/linkTeaser/index.tsx | 6 +----- src/templates/components/lovellSwitcher/index.tsx | 1 - src/templates/components/newsStoryTeaser/index.tsx | 5 +---- src/templates/components/numberCallout/index.tsx | 6 +----- src/templates/components/personProfile/index.tsx | 11 ++--------- .../components/pressReleaseTeaser/index.tsx | 5 +---- src/templates/components/processList/index.tsx | 6 +----- .../components/qaCollapsiblePanel/index.test.tsx | 2 +- .../components/qaCollapsiblePanel/index.tsx | 2 +- src/templates/components/qaParagraph/index.tsx | 2 +- src/templates/components/qaSection/index.test.tsx | 4 ++-- src/templates/components/qaSection/index.tsx | 2 +- .../components/rateYourExperience/index.tsx | 5 +---- src/templates/components/reactWidget/index.tsx | 1 - src/templates/components/servicesList/index.tsx | 5 +---- src/templates/components/storyListingLink/index.tsx | 1 - src/templates/components/table/index.tsx | 5 +---- src/templates/components/wysiwyg/index.tsx | 6 +----- src/templates/layouts/checklist/index.tsx | 5 +---- src/templates/layouts/event/index.tsx | 5 +---- src/templates/layouts/eventListing/index.tsx | 6 +----- src/templates/layouts/newsStory/index.tsx | 5 +---- src/templates/layouts/pressRelease/index.tsx | 5 +---- src/templates/layouts/pressReleaseListing/index.tsx | 6 +----- src/templates/layouts/questionAnswer/index.tsx | 6 +----- src/templates/layouts/resourcesSupport/index.tsx | 1 - src/templates/layouts/staffProfile/index.tsx | 6 +----- src/templates/layouts/storyListing/index.tsx | 6 +----- src/templates/layouts/vetCenter/index.tsx | 5 +---- 57 files changed, 45 insertions(+), 187 deletions(-) diff --git a/src/templates/common/banners/banner/index.tsx b/src/templates/common/banners/banner/index.tsx index 5406060fb..9b5907d33 100644 --- a/src/templates/common/banners/banner/index.tsx +++ b/src/templates/common/banners/banner/index.tsx @@ -10,7 +10,6 @@ export const Banner = ({ }: FormattedBanner): JSX.Element => { return ( {outputStatus && ( ( aria-label="Maintenance banner" data-widget-type="maintenance-banner" role="region" - data-next-component="templates/common/banners/maintenanceBanner" > ) diff --git a/src/templates/common/banners/promoBanner/index.tsx b/src/templates/common/banners/promoBanner/index.tsx index 9f0bb177c..5a4764793 100644 --- a/src/templates/common/banners/promoBanner/index.tsx +++ b/src/templates/common/banners/promoBanner/index.tsx @@ -8,13 +8,7 @@ export const PromoBanner = ({ alertType, }: FormattedPromoBanner): JSX.Element => { return ( - + {title} ) diff --git a/src/templates/common/breadcrumbs/index.tsx b/src/templates/common/breadcrumbs/index.tsx index e915f4281..fc5312e9f 100644 --- a/src/templates/common/breadcrumbs/index.tsx +++ b/src/templates/common/breadcrumbs/index.tsx @@ -67,10 +67,7 @@ const Breadcrumbs = ({ const fcString = JSON.stringify(filteredCrumbs) return ( -
+
) diff --git a/src/templates/common/button/index.tsx b/src/templates/common/button/index.tsx index 848d7746e..c940b771c 100644 --- a/src/templates/common/button/index.tsx +++ b/src/templates/common/button/index.tsx @@ -10,7 +10,7 @@ export function Button({ return ( label && url && ( -
+
{label} diff --git a/src/templates/common/commonAndPopular/index.tsx b/src/templates/common/commonAndPopular/index.tsx index 5aea7f40d..f4b2f37bc 100644 --- a/src/templates/common/commonAndPopular/index.tsx +++ b/src/templates/common/commonAndPopular/index.tsx @@ -2,10 +2,7 @@ import Link from 'next/link' export function CommonAndPopular() { return ( -
+

Common Questions diff --git a/src/templates/common/contentFooter/index.tsx b/src/templates/common/contentFooter/index.tsx index ebe8e40f0..fe2245a8b 100644 --- a/src/templates/common/contentFooter/index.tsx +++ b/src/templates/common/contentFooter/index.tsx @@ -60,7 +60,6 @@ export function ContentFooter({ return (
{displayDate && machineDate && ( diff --git a/src/templates/common/featuredContent/index.tsx b/src/templates/common/featuredContent/index.tsx index f4fd98103..9631323c0 100644 --- a/src/templates/common/featuredContent/index.tsx +++ b/src/templates/common/featuredContent/index.tsx @@ -7,10 +7,7 @@ export function FeaturedContent({ link, }: ParagraphComponent) { return ( -
+
{title && ( <>

diff --git a/src/templates/common/footer/index.tsx b/src/templates/common/footer/index.tsx index 92784c3b1..e93833516 100644 --- a/src/templates/common/footer/index.tsx +++ b/src/templates/common/footer/index.tsx @@ -4,7 +4,7 @@ export const Footer = () => { const content = `VA's mission: To fulfill President Lincoln's promise to care for those who have served in our nation's military and for their families, caregivers, and survivors.` return ( <> -