Browse Source

Renamed LogsIndex -> LogsRoot, removed hardcoded bg image from LogsRoot

1.0
Gisle Aune 7 years ago
parent
commit
67e9e8f1e6
  1. 4
      rpdata-ui/src/App.js
  2. 14
      rpdata-ui/src/routes/logs/LogsIndex.js
  3. 1
      rpdata-ui/src/routes/logs/LogsMenu.js
  4. 14
      rpdata-ui/src/routes/logs/LogsRoot.js

4
rpdata-ui/src/App.js

@ -2,7 +2,7 @@ import React, { Component } from 'react'
import { Route, Router, Redirect, Switch } from "react-router-dom";
import StoryRoot from './routes/story/StoryRoot';
import LogsIndex from './routes/logs/LogsIndex';
import LogsRoot from './routes/logs/LogsRoot';
export default class App extends Component {
render() {
@ -11,7 +11,7 @@ export default class App extends Component {
<Switch>
<Redirect exact path="/" to="/story/" />
<Route path="/story/" component={StoryRoot}/>
<Route path="/logs/" component={LogsIndex}/>
<Route path="/logs/" component={LogsRoot}/>
</Switch>
</div>
);

14
rpdata-ui/src/routes/logs/LogsIndex.js

@ -1,14 +0,0 @@
import React, { Component } from 'react';
import Background from '../../common/Background';
import LogsMenu from './LogsMenu';
export default class LogsIndex extends Component {
render() {
return (
<div className="StoryIndex theme-logs">
<Background src="https://wiki.aiterp.net/images/c/ce/Ehanis_Tioran_-_Portrait_-_Resized.png" />
<LogsMenu />
</div>
)
}
}

1
rpdata-ui/src/routes/logs/LogsMenu.js

@ -10,7 +10,6 @@ export default class LogsMenu extends Component {
<MenuGap />
<MenuHeader>Options</MenuHeader>
<MenuLink icon="+">Create Log</MenuLink>
<MenuLink icon="I">Import Log</MenuLink>
</Menu>
)
}

14
rpdata-ui/src/routes/logs/LogsRoot.js

@ -0,0 +1,14 @@
import React, { Component } from 'react';
import Background from '../../common/Background';
import LogsMenu from './LogsMenu';
export default class LogsRoot extends Component {
render() {
return (
<div className="LogsRoot theme-logs">
<Background />
<LogsMenu />
</div>
)
}
}
Loading…
Cancel
Save