diff --git a/app/components/Layout/Navigation.tsx b/app/components/Layout/Navigation.tsx index 1edc3040b6..07574aed1d 100644 --- a/app/components/Layout/Navigation.tsx +++ b/app/components/Layout/Navigation.tsx @@ -12,6 +12,7 @@ interface Props { children?: React.ReactNode; title?: string; userProfileComponent?: React.ReactNode; + hideLoginButton?: boolean; } const DEFAULT_MOBILE_BREAK_POINT = "900"; @@ -20,12 +21,15 @@ const Navigation: React.FC = ({ isLoggedIn = false, title = "CleanBC Industry Fund", userProfileComponent, + hideLoginButton, }) => { let rightSide = isLoggedIn ? ( <> {userProfileComponent} + ) : hideLoginButton ? ( + <> ) : ( ); diff --git a/app/components/Layout/StaticLayout.tsx b/app/components/Layout/StaticLayout.tsx index ade274dd74..025b326104 100644 --- a/app/components/Layout/StaticLayout.tsx +++ b/app/components/Layout/StaticLayout.tsx @@ -12,7 +12,7 @@ interface Props { const StaticLayout: React.FC = ({ children, title }) => { return (
- + {runtimeConfig.SITEWIDE_NOTICE && ( )}