fix tribes not rendering

This commit is contained in:
Daniel 2018-01-23 20:00:38 -05:00
parent 59e1235fe5
commit 707e8df333
4 changed files with 19 additions and 19 deletions

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Chaotic Backup</title>
<meta name="description" content="Chaotic Backup">
<link rel="stylesheet" href="/src/css/legacy.css">
<style>
html, body, div, span, a, p, ul, li, h1, code, nav {
margin: 0;

View File

@ -1,7 +1,7 @@
import React from 'react';
import { render } from 'react-dom';
import { Link } from 'react-router-dom';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import { BrowserRouter as Router, Link, Route } from 'react-router-dom';
import {observer, inject} from 'mobx-react';
import s from '../styles/app.style';
/* Components */
@ -14,7 +14,7 @@ import Home from './Home';
render(
<Router>
<div>
<Route path="/" component={Base}/>
<Route path="*" component={Base}/>
</div>
</Router>
, document.getElementById('root'),
@ -42,6 +42,7 @@ function Base(props) {
return (
<div>
<link rel="stylesheet" type="text/css" href="/src/css/legacy.css" />
<div className="fix-pgBkgrnd-repeat-x">
<div className={"fix-img-bkgrnd fix-img-bkgrnd_"+bkgrnd}></div>
</div>

View File

@ -35,7 +35,7 @@ export default class Creatures extends React.Component {
}
const tribe = (() => {
if (path.length >= 4 && API.ribes.includes(path[3])) return path[3];
if (path.length >= 4 && API.tribes.includes(path[3])) return path[3];
else return null;
})();