HOT-FIX. Поправлена картинка not found, поправил меню
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
import Component from '../component/index';
|
||||
import routeService from '../../services/RouteService';
|
||||
import Image from '../../img/logo.svg';
|
||||
|
||||
import './MainMenu.css';
|
||||
import {createElement} from '../../utils/elementUtils';
|
||||
@ -28,12 +27,11 @@ class MainMenu extends Component {
|
||||
super('#main-menu', document.body);
|
||||
|
||||
this.buttonsContainer = this.mainNode.querySelector('.navbar-nav');
|
||||
this.logoImg = document.createElement('img');
|
||||
this.logoImg.src = Image;
|
||||
this.logoImg.alt = 'logo';
|
||||
this.logoImg.className = 'Logo mr-2';
|
||||
this.logoBox = this.mainNode.querySelector('.Logo__box');
|
||||
this.logoBox.appendChild(this.logoImg);
|
||||
|
||||
this.addEventListener(this.logoBox, 'click', () => {
|
||||
routeService.goTo('/');
|
||||
});
|
||||
|
||||
this.addSubscribe(routeService, EVENTS.ROUTE_CHANGE, (route) => {
|
||||
this.menuItems.forEach(({url, link}) => {
|
||||
|
||||
Reference in New Issue
Block a user