From 24f416b3f9c012931d6aeecbaeebd85573487753 Mon Sep 17 00:00:00 2001 From: Kenneth Kalmer Date: Mon, 25 Nov 2024 15:12:50 +0000 Subject: [PATCH] chore: switch to using the StatusIcon component in meganav & footer For the meganav this resolves the issue of invalid markup (a > a) --- src/core/Footer.tsx | 10 ++++++---- .../Footer/__snapshots__/Footer.stories.tsx.snap | 12 ++++-------- src/core/MeganavContentDevelopers.tsx | 9 +++------ 3 files changed, 13 insertions(+), 18 deletions(-) diff --git a/src/core/Footer.tsx b/src/core/Footer.tsx index a6b754f21..ab4936f63 100644 --- a/src/core/Footer.tsx +++ b/src/core/Footer.tsx @@ -2,7 +2,7 @@ import React from "react"; import Icon from "./Icon"; import _absUrl from "./url-base.js"; -import Status from "./Status.js"; +import { StatusIcon } from "./Status.js"; type FooterProps = { paths: { @@ -209,14 +209,16 @@ const Footer = ({ paths, urlBase, statusUrl }: FooterProps) => { SDKs -
  • +
  • System status + -
  • diff --git a/src/core/Footer/__snapshots__/Footer.stories.tsx.snap b/src/core/Footer/__snapshots__/Footer.stories.tsx.snap index 82fb910c2..cb612222c 100644 --- a/src/core/Footer/__snapshots__/Footer.stories.tsx.snap +++ b/src/core/Footer/__snapshots__/Footer.stories.tsx.snap @@ -175,18 +175,14 @@ exports[`Components/Footer Default smoke-test 1`] = ` SDKs -
  • - + - System status - - - + System status + diff --git a/src/core/MeganavContentDevelopers.tsx b/src/core/MeganavContentDevelopers.tsx index 226e297e3..31ca9d96e 100644 --- a/src/core/MeganavContentDevelopers.tsx +++ b/src/core/MeganavContentDevelopers.tsx @@ -2,7 +2,7 @@ import React from "react"; import Icon from "./Icon"; import { AbsUrl } from "./Meganav"; -import Status from "./Status"; +import { StatusIcon } from "./Status"; const MeganavContentDevelopers = ({ absUrl, @@ -186,12 +186,9 @@ const MeganavContentDevelopers = ({ href="https://status.ably.com/" className="group ui-meganav-media py-12" > -

    +

    Status - +