move logo component to folder

This commit is contained in:
Jake McDermott 2018-10-15 12:16:58 -04:00
parent 070cec19df
commit ff53a9c8ea
No known key found for this signature in database
GPG Key ID: 9A6F084352C3A0B7
4 changed files with 8 additions and 1 deletions

View File

@ -13,9 +13,13 @@ class TowerLogo extends Component {
}
onClick = () => {
if (!this.props.onClick) return;
const { history } = this.props;
history.push('/');
this.props.onClick();
};
onHover = () => {
@ -29,7 +33,7 @@ class TowerLogo extends Component {
let src = TowerLogoHeader;
if (hover) {
if (hover && this.props.onClick) {
src = TowerLogoHeaderHover;
}

View File

@ -0,0 +1,3 @@
import TowerLogo from './TowerLogo';
export default TowerLogo;

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB