From a20da98081b91bcdb8d02c68edf6fcccf8fb046a Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 16 Apr 2021 21:33:09 +0200 Subject: basic jakrawal --- frontend/site/projects/museum/views/essay.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'frontend/site/projects/museum/views/essay.js') diff --git a/frontend/site/projects/museum/views/essay.js b/frontend/site/projects/museum/views/essay.js index e271934..ddfbfcb 100644 --- a/frontend/site/projects/museum/views/essay.js +++ b/frontend/site/projects/museum/views/essay.js @@ -7,6 +7,8 @@ import "./essay.css" import { ARTISTS, ARTIST_ORDER, ESSAYS, ESSAY_ORDER } from "site/projects/museum/constants" import { ArrowLeft, ArrowRight, Globe } from "site/projects/museum/icons" +import { history } from "site/store" + export default class Essays extends Component { state = { currentIndex: 0, @@ -20,6 +22,7 @@ export default class Essays extends Component { this.previousEssay = this.previousEssay.bind(this) this.nextEssay = this.nextEssay.bind(this) this.close = this.close.bind(this) + this.goHome = this.goHome.bind(this) } componentDidMount() { @@ -45,6 +48,10 @@ export default class Essays extends Component { this.scrollToTop() } + goHome() { + history.push(`/last-museum/home/`) + } + scrollToTop() { setTimeout(() => { Array.from(this.ref.current.querySelectorAll(".artist-detail")).forEach(el => { @@ -88,6 +95,9 @@ export default class Essays extends Component {
{ArrowLeft}
{ArrowRight}
+
+ Home +
) } -- cgit v1.2.3-70-g09d2