source: phonelux-frontend/src/components/HeaderComponent/HeaderComponent.js@ ffd50db

Last change on this file since ffd50db was 7e88e46, checked in by Marko <Marko@…>, 2 years ago

Added more components

  • Property mode set to 100644
File size: 737 bytes
Line 
1import React, { Component } from 'react'
2import { Link } from 'react-router-dom'
3import logo from '../../images/logo_phonelux.png'
4import NavbarComponent from '../NavbarComponent/NavbarComponent'
5import './HeaderComponent.css'
6
7export default class HeaderComponent extends Component {
8
9
10 redirectToHomepage = () =>{
11 window.location.href = "/"
12 }
13 render() {
14 return (
15 <>
16 <div className='homepage-navbar-component'>
17 <NavbarComponent/>
18 </div>
19 <div className='header-component'>
20 {/* <Link style={{ textDecoration: 'none' }} to={"/"}> */}
21 <img className='phonelux-logo' onClick={this.redirectToHomepage} src={logo}></img>
22 {/* </Link> */}
23 </div>
24 </>
25 )
26 }
27}
Note: See TracBrowser for help on using the repository browser.