diff options
author | Renard | 2019-09-15 20:52:10 -0300 |
---|---|---|
committer | Renard | 2019-09-15 20:52:10 -0300 |
commit | 4a39a75a5a8beda6b28b311c78990d72f1cfe7cf (patch) | |
tree | c4ee1daf161604637961a5bc86690ade32a0e484 | |
parent | 674880a5376e759c149d7aa6cb4ccbc8247cbd94 (diff) | |
download | bai-client-4a39a75a5a8beda6b28b311c78990d72f1cfe7cf.tar.gz bai-client-4a39a75a5a8beda6b28b311c78990d72f1cfe7cf.tar.xz bai-client-4a39a75a5a8beda6b28b311c78990d72f1cfe7cf.zip |
Refractor BBSThread
-rw-r--r-- | src/App.js | 8 | ||||
-rw-r--r-- | src/Thread.js (renamed from src/BBSThread.js) | 4 |
2 files changed, 6 insertions, 6 deletions
@@ -6,7 +6,7 @@ import "./App.css"; import { Dropdown, Menu, Icon, Loader, Container } from "semantic-ui-react"; import Home from "./Home"; -import BBSThread from "./BBSThread"; +import Thread from "./Thread"; import Board from "./Board"; import NotFound from "./NotFound" @@ -65,9 +65,9 @@ class App extends Component { <Container className="main"> <Router> <Home boardList={this.state.boardList} path="/" /> - <BBSThread path="/:dir/read/:id"> - <BBSThread path=":active" /> - </BBSThread> + <Thread path="/:dir/read/:id"> + <Thread path=":active" /> + </Thread> <Board path="/board/:dir" /> <NotFound default /> </Router> diff --git a/src/BBSThread.js b/src/Thread.js index b81264e..eb9d63a 100644 --- a/src/BBSThread.js +++ b/src/Thread.js @@ -5,7 +5,7 @@ import "moment/locale/es"; import Post from "./Post"; import ReplyForm from "./ReplyForm"; -class BBSThread extends Component { +class Thread extends Component { constructor(props) { super(props); this.state = { @@ -92,4 +92,4 @@ class BBSThread extends Component { } } -export default BBSThread;
\ No newline at end of file +export default Thread;
\ No newline at end of file |