From 0593307e7a9e6354feb24b2c5e381785f1ad7a6f Mon Sep 17 00:00:00 2001 From: ortiztena Date: Wed, 23 Feb 2022 11:15:50 +0100 Subject: [PATCH] added IconButton to CodePasterLogo --- .../src/common-app/components/appbar/appbar.component.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/front/src/common-app/components/appbar/appbar.component.tsx b/front/src/common-app/components/appbar/appbar.component.tsx index af46b06..4517ca1 100644 --- a/front/src/common-app/components/appbar/appbar.component.tsx +++ b/front/src/common-app/components/appbar/appbar.component.tsx @@ -1,13 +1,19 @@ import React from 'react'; import { ReactComponent as CodePasterLogo } from 'assets/logo.svg'; +import IconButton from '@material-ui/core/IconButton'; import * as classes from './appbar.styles'; +import { useHistory } from 'react-router-dom'; export const AppbarComponent: React.FC = () => { const { appbarContainer, logo } = classes; + const history = useHistory(); + const handleClick = () => history.push('/'); return (
- + handleClick()}> + +
); };