route components moved in routes dir

This commit is contained in:
NikolaBorislavovHristov 2018-06-14 20:13:26 +03:00
parent 4a755af113
commit 5509c86c6c
10 changed files with 68 additions and 5 deletions

View file

@ -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
View 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;

View file

@ -0,0 +1,3 @@
import Board from './Board';
export default Board;

View 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;

View file

@ -0,0 +1,3 @@
import Calendar from './Calendar';
export default Calendar;

View 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;

View file

@ -0,0 +1,3 @@
import Discover from './Discover';
export default Discover;

View 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;

View file

@ -0,0 +1,3 @@
import Library from './Library';
export default Library;

11
src/routes/index.js Normal file
View 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
};