From efc416e6187fa6fdc9e78b0a9126512faf119adf Mon Sep 17 00:00:00 2001 From: Mani Date: Thu, 17 Jun 2021 17:55:57 +0200 Subject: [PATCH 01/37] Configured button on the details page back to product --- frontend/src/components/details/NavbarComponent.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/details/NavbarComponent.js b/frontend/src/components/details/NavbarComponent.js index 50f0a6c3..bc80340a 100644 --- a/frontend/src/components/details/NavbarComponent.js +++ b/frontend/src/components/details/NavbarComponent.js @@ -1,6 +1,7 @@ import React from 'react'; import slugs from 'resources/slugs'; import { Link } from 'react-router-dom'; +import { useHistory } from 'react-router-dom'; /** * a divider Pannel for seperating search compoents and result components @@ -8,16 +9,15 @@ import { Link } from 'react-router-dom'; * * @author Parham Gandomkar, Irem Toroslu, Julian Oelhaf */ - const NavbarComponent = (props) => { + const history = useHistory(); if (!props.loadComparePage) { return (
- - -