mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
route components moved in routes dir
This commit is contained in:
parent
4a755af113
commit
5509c86c6c
10 changed files with 68 additions and 5 deletions
|
|
@ -1,13 +1,9 @@
|
|||
import React, { Component } from 'react';
|
||||
import { BrowserRouter, Switch, Route, Redirect } from 'react-router-dom';
|
||||
import { Board, Discover, Library, Calendar } from 'stremio-routes';
|
||||
import NavBar from './NavBar';
|
||||
import styles from './styles';
|
||||
|
||||
const Board = () => <div style={{ color: 'pink', paddingTop: 40 }}>You're on the Board Tab</div>;
|
||||
const Discover = () => <div style={{ color: 'pink', paddingTop: 40 }}>You're on the Discover Tab</div>;
|
||||
const Library = () => <div style={{ color: 'pink', paddingTop: 40 }}>You're on the Library Tab</div>;
|
||||
const Calendar = () => <div style={{ color: 'pink', paddingTop: 40 }}>You're on the Calendar Tab</div>;
|
||||
|
||||
class App extends Component {
|
||||
render() {
|
||||
return (
|
||||
|
|
|
|||
11
src/routes/Board/Board.js
Normal file
11
src/routes/Board/Board.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import React, { Component } from 'react';
|
||||
|
||||
class Board extends Component {
|
||||
render() {
|
||||
return (
|
||||
<div style={{ color: 'pink', paddingTop: 40 }}>You're on the Board Tab</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Board;
|
||||
3
src/routes/Board/index.js
Normal file
3
src/routes/Board/index.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import Board from './Board';
|
||||
|
||||
export default Board;
|
||||
11
src/routes/Calendar/Calendar.js
Normal file
11
src/routes/Calendar/Calendar.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import React, { Component } from 'react';
|
||||
|
||||
class Calendar extends Component {
|
||||
render() {
|
||||
return (
|
||||
<div style={{ color: 'pink', paddingTop: 40 }}>You're on the Calendar Tab</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Calendar;
|
||||
3
src/routes/Calendar/index.js
Normal file
3
src/routes/Calendar/index.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import Calendar from './Calendar';
|
||||
|
||||
export default Calendar;
|
||||
11
src/routes/Discover/Discover.js
Normal file
11
src/routes/Discover/Discover.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import React, { Component } from 'react';
|
||||
|
||||
class Discover extends Component {
|
||||
render() {
|
||||
return (
|
||||
<div style={{ color: 'pink', paddingTop: 40 }}>You're on the Discover Tab</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Discover;
|
||||
3
src/routes/Discover/index.js
Normal file
3
src/routes/Discover/index.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import Discover from './Discover';
|
||||
|
||||
export default Discover;
|
||||
11
src/routes/Library/Library.js
Normal file
11
src/routes/Library/Library.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import React, { Component } from 'react';
|
||||
|
||||
class Library extends Component {
|
||||
render() {
|
||||
return (
|
||||
<div style={{ color: 'pink', paddingTop: 40 }}>You're on the Library Tab</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Library;
|
||||
3
src/routes/Library/index.js
Normal file
3
src/routes/Library/index.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import Library from './Library';
|
||||
|
||||
export default Library;
|
||||
11
src/routes/index.js
Normal file
11
src/routes/index.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import Board from './Board';
|
||||
import Discover from './Discover';
|
||||
import Library from './Library';
|
||||
import Calendar from './Calendar';
|
||||
|
||||
export {
|
||||
Board,
|
||||
Discover,
|
||||
Library,
|
||||
Calendar
|
||||
};
|
||||
Loading…
Reference in a new issue