Skip to content

Commit

Permalink
fixup! chore: use new Status component in the meganav
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethkalmer committed Jul 24, 2024
1 parent cefe6eb commit 0963694
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
13 changes: 11 additions & 2 deletions src/core/MeganavContentDevelopers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ import Icon from "./Icon";
import { AbsUrl } from "./Meganav";
import Status from "./Status";

const MeganavContentDevelopers = ({ absUrl, statusUrl }: { absUrl: AbsUrl, statusUrl: string }) => (
const MeganavContentDevelopers = ({
absUrl,
statusUrl,
}: {
absUrl: AbsUrl;
statusUrl: string;
}) => (
<div className="flex max-w-screen-xl mx-auto">
<div className="ui-meganav-content-spacer"></div>
<section className="grid grid-cols-12 ui-grid-gap-x w-full">
Expand Down Expand Up @@ -182,7 +188,10 @@ const MeganavContentDevelopers = ({ absUrl, statusUrl }: { absUrl: AbsUrl, statu
>
<p className="ui-meganav-media-heading">
Status
<Status statusUrl={statusUrl} additionalCSS='ml-4 align-middle' />
<Status
statusUrl={statusUrl}
additionalCSS="ml-4 align-middle"
/>
</p>
</a>
</li>
Expand Down
6 changes: 5 additions & 1 deletion src/core/MeganavItemsDesktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ const MeganavDesktopItems = ({
id={panel.id}
data-id="meganav-panel"
>
<PanelComponent paths={paths} absUrl={absUrl} statusUrl={statusUrl} />
<PanelComponent
paths={paths}
absUrl={absUrl}
statusUrl={statusUrl}
/>
</div>
</li>
);
Expand Down
8 changes: 6 additions & 2 deletions src/core/MeganavItemsMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const MeganavItemsMobile = ({
theme,
loginLink,
absUrl,
statusUrl
statusUrl,
}: MeganavItemsMobileProps) => {
const classNames = `ui-meganav-link ${theme.textColor}`;

Expand Down Expand Up @@ -146,7 +146,11 @@ const MeganavItemsMobile = ({
ariaControls={`${panel.id}-mobile`}
displayHr={displayHr}
/>
<PanelComponent paths={paths} absUrl={absUrl} statusUrl={statusUrl} />
<PanelComponent
paths={paths}
absUrl={absUrl}
statusUrl={statusUrl}
/>
</div>
</li>
);
Expand Down

0 comments on commit 0963694

Please sign in to comment.