diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-04-02 16:18:12 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-04-02 16:18:12 +0200 |
| commit | 4ccf211454c6aededa4ecf5225b671216c7b037b (patch) | |
| tree | 04ca4548cdb94a416a5ffed4a6864f2ac9587719 /frontend/site/projects/museum/views/nav.overlay.js | |
| parent | a5edc770771479532f6e4af08e71b242744625d2 (diff) | |
stub in artist/credit/essay pages
Diffstat (limited to 'frontend/site/projects/museum/views/nav.overlay.js')
| -rw-r--r-- | frontend/site/projects/museum/views/nav.overlay.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/frontend/site/projects/museum/views/nav.overlay.js b/frontend/site/projects/museum/views/nav.overlay.js index ed6a0f5..0173b93 100644 --- a/frontend/site/projects/museum/views/nav.overlay.js +++ b/frontend/site/projects/museum/views/nav.overlay.js @@ -4,7 +4,7 @@ import actions from 'site/actions' import "./nav.css" -import { ARTISTS, ARTIST_ORDER } from "site/projects/museum/constants" +import { ARTISTS, ARTIST_ORDER, PROJECT_PAGE_SET } from "site/projects/museum/constants" import { ArrowLeft, ArrowRight } from "site/projects/museum/icons" import { history } from "site/store" @@ -41,12 +41,21 @@ export default class NavOverlay extends Component { // console.log(pathkey) if (pathkey === 'start') { this.setState({ + showHome: false, showFooter: true, showArtist: false, currentArtist: null, artist: {}, }) - } else if (pathkey in ARTISTS) { + } + else if (PROJECT_PAGE_SET.has(pathkey)) { + this.setState({ + showHome: true, + showFooter: true, + showArtist: false, + }) + } + else if (pathkey in ARTISTS) { this.setState({ showHome: true, showFooter: true, |
