Skip to content

Commit

Permalink
Turn the banner into a stand alone component
Browse files Browse the repository at this point in the history
  • Loading branch information
Breno committed Oct 31, 2024
1 parent 5b371c0 commit e25e1c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/components/Layout/ReleaseBanner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ import {

interface ReleaseBanner {
theme: 'dark' | 'light';
href: string;
}

const ReleaseBanner = ({ theme = 'dark', href }) => {
const ReleaseBanner = ({ theme = 'dark' }) => {
return (
<div
className={clsx(
Expand All @@ -21,7 +20,7 @@ const ReleaseBanner = ({ theme = 'dark', href }) => {
)}
>
<div>
<a href={href} target="_blank" rel="noreferrer">
<a href="/deployment-options" target="_blank" rel="noreferrer">
<span>A Step Ahead</span>
<p>
Explore Estuary&apos;s powerful compliance solutions
Expand Down
4 changes: 1 addition & 3 deletions src/components/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ const Layout = ({
</React.Suspense>
<Header fixedHeader={fixedHeader} />
<main className={clsx(fixedHeader && globalMainFixedHeader)}>
{showReleaseBanner ? (
<ReleaseBanner href="/deployment-options" />
) : null}
{showReleaseBanner ? <ReleaseBanner /> : null}
{children}
</main>
<Footer />
Expand Down

0 comments on commit e25e1c9

Please sign in to comment.