Skip to content

Commit

Permalink
Merge branch 'testnet' into feat/domain-popup
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchand-Nicolas committed Sep 27, 2023
2 parents 5bb6284 + 87f1790 commit b451bb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/UI/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const Navbar: FunctionComponent = () => {

return (
<>
<div className={`fixed w-full z-[1]`}>
<div className={`fixed w-full z-[1]`} id="nav">
{showDomainPopup && (
<Popup
title="Mandatory Starknet Domain"
Expand Down
3 changes: 3 additions & 0 deletions components/quiz/quiz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@ const Quiz: FunctionComponent<QuizProps> = ({
useEffect(() => {
const documentBody = document.querySelector("body");
const footer = document.querySelector("footer");
const navbar = document.getElementById("nav");
// Mount
if (documentBody) documentBody.style.overflow = "hidden";
if (footer) footer.style.display = "none";
if (navbar) navbar.style.display = "none";
// Unmount
return () => {
if (documentBody) documentBody.style.removeProperty("overflow");
if (footer) footer.style.removeProperty("display");
if (navbar) navbar.style.removeProperty("display");
};
}, []);

Expand Down

0 comments on commit b451bb1

Please sign in to comment.