Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { CloseIcon } from "./CloseIcon";

export const Banner = ({ theme }: { theme: "dark" | "light" }) => {
const hideBannerTitle = localStorage.getItem("hideBanner");
// Check if banner should be hidden based on localStorage value matching env variable
const hideBannerFromLocalStorage = hideBannerTitle === process.env.NEXT_PUBLIC_BANNER_TITLE;

const [isDesktop, setIsDesktop] = useState(false);
Expand Down
1 change: 1 addition & 0 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default function Document() {
content="ie=edge"
httpEquiv="X-UA-Compatible"
/>
{/* Setting X-UA-Compatible to IE=edge ensures the latest rendering engine is used */}
</Head>
<body>
<Main />
Expand Down