25 lines
747 B
JavaScript
25 lines
747 B
JavaScript
/* global $ */
|
|
|
|
import './events.js';
|
|
|
|
import 'whatwg-fetch';
|
|
|
|
import React from 'react';
|
|
import ProjectImagesTypes from './components/index/project-images-types';
|
|
import ProjectImagesMain from './components/index/project-images-main';
|
|
|
|
import NavBar from './components/navbar/navbar';
|
|
import Breadcrumbs from './components/breadcrumbs';
|
|
|
|
if ($('body').hasClass('index')) { // Render components on index
|
|
React.render(<ProjectImagesTypes />, document.getElementById('project-images-types'));
|
|
React.render(<ProjectImagesMain />, document.getElementById('project-images-main'));
|
|
}
|
|
|
|
if ($('navbar').length > 0) {
|
|
React.render(<NavBar />, $('navbar')[0]);
|
|
}
|
|
|
|
if ($('#breadcrumbs') > 0) {
|
|
React.render(<Breadcrumbs />, $('#breadcrumbs')[0]);
|
|
}
|