receptor/src/ui/main.js

22 lines
598 B
JavaScript
Raw Normal View History

2017-08-22 21:49:48 +02:00
import React, { Component } from 'react';
2017-08-24 14:30:22 +02:00
import { Route } from 'react-router';
2017-08-22 21:49:48 +02:00
import TorrentTable from './torrent_table';
2017-08-24 14:30:22 +02:00
import AddTorrent from './add_torrent';
import TorrentDetails from './torrent_details';
2017-08-22 21:49:48 +02:00
export default class Main extends Component {
render() {
return (
<div className="row">
<div className="col-md-8">
<TorrentTable />
</div>
2017-08-23 14:52:08 +02:00
<div className="col-md-4">
2017-08-24 14:30:22 +02:00
<Route path="/add-torrent" component={AddTorrent} />
2017-08-24 15:50:14 +02:00
<Route path="/torrents/:ids" component={TorrentDetails} />
2017-08-23 14:52:08 +02:00
</div>
2017-08-22 21:49:48 +02:00
</div>
);
}
}