From 500182b58f4c87528a19c83014816a2f4c6b456f Mon Sep 17 00:00:00 2001 From: Giulia Nicola Pernice Date: Sun, 12 May 2024 17:15:06 +0100 Subject: [PATCH] conditional env render --- src/components/Header.jsx | 11 ++++++----- src/components/Layout.js | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/Header.jsx b/src/components/Header.jsx index ba508db..addd885 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -81,13 +81,14 @@ export default function Header(props) { small ? "opacity-0" : "opacity-1" }`} > - + {process.env.NODE_ENV === "development" && }
- Case Histories - - } + {process.env.NODE_ENV === "development" && Works Archive - + } {/* { // const { title } = useSiteMetadata() const [isActive, setActive] = useState("false") - const [isBGVisible, setBGVisible] = useState(true) + const [isBGVisible, setBGVisible] = useState(false) const location = useLocation() const prevLocation = usePrevious(location) @@ -116,7 +116,7 @@ const Layout = ({ children }) => { {/* */}