diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx index 9fa78c9..52083d0 100644 --- a/src/components/layout/Header.tsx +++ b/src/components/layout/Header.tsx @@ -12,7 +12,10 @@ import { DropdownMenu, DropdownItem, } from 'reactstrap'; -import { SITE_HAS_GLOBAL_BANNER } from '../../consts'; +import { + SITE_HAS_GLOBAL_BANNER, + SITE_HAS_UPCOMING_EXHIBITIONS, +} from '../../consts'; import { usePrevious } from '../../hooks'; import { Link, @@ -110,9 +113,11 @@ export const Header = () => { Collection - - Exhibitions - + {SITE_HAS_UPCOMING_EXHIBITIONS && ( + + Exhibitions + + )} Publications diff --git a/src/consts.ts b/src/consts.ts index c7bc087..c750352 100644 --- a/src/consts.ts +++ b/src/consts.ts @@ -3,3 +3,5 @@ export const EMAIL_ADDRESS = 'kornbluthart@gmail.com'; export const GOOGLE_TAG_MANAGER_ID = 'GTM-M2SX39M'; export const SITE_HAS_GLOBAL_BANNER = false; + +export const SITE_HAS_UPCOMING_EXHIBITIONS = false; diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index ac5f1f2..aacbb37 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -12,6 +12,7 @@ import { Paragraph, OutlineButton, } from './shared'; +import { SITE_HAS_UPCOMING_EXHIBITIONS } from 'consts'; export const Home = () => ( @@ -62,9 +63,15 @@ export const Home = () => ( - + {SITE_HAS_UPCOMING_EXHIBITIONS ? ( + + ) : ( + + )}