mirror of
https://github.com/chaoticbackup/chaoticbackup.github.io.git
synced 2026-03-22 01:34:20 -05:00
fix tribes not rendering
This commit is contained in:
parent
59e1235fe5
commit
707e8df333
File diff suppressed because one or more lines are too long
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
})();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user