-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created room skeleton, reorganized component file structure
- Loading branch information
1 parent
8451faa
commit 633a132
Showing
14 changed files
with
99 additions
and
37 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
const Playlist = () => ( | ||
<div> | ||
<p>Playlist</p> | ||
</div> | ||
); | ||
|
||
Playlist.propTypes = { | ||
}; | ||
|
||
export default Playlist; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import VideoPlayer from './VideoPlayer.jsx'; | ||
import Playlist from './Playlist.jsx'; | ||
import Search from './Search.jsx'; | ||
import VideoDescription from './VideoDescription.jsx'; | ||
|
||
class RoomView extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
this.state = { | ||
video: 'insert current video', | ||
}; | ||
} | ||
|
||
render() { | ||
return ( | ||
<div> | ||
<h3>Room</h3> | ||
<VideoPlayer video={this.state.video} /> | ||
<VideoDescription /> | ||
<Playlist /> | ||
<Search /> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
ReactDOM.render(<RoomView />, document.getElementById('room')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import SearchResults from './SearchResults.jsx'; | ||
|
||
const Search = () => ( | ||
<div> | ||
<p>Search</p> | ||
<SearchResults /> | ||
</div> | ||
); | ||
|
||
Search.propTypes = { | ||
}; | ||
|
||
export default Search; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import SearchResultsEntry from './SearchResultsEntry.jsx'; | ||
|
||
const SearchResults = () => ( | ||
<div> | ||
<p>SearchResults</p> | ||
<SearchResultsEntry /> | ||
</div> | ||
); | ||
|
||
export default SearchResults; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
|
||
const SearchResultsEntry = () => ( | ||
<div> | ||
<p>SearchResultsEntry</p> | ||
</div> | ||
); | ||
|
||
export default SearchResultsEntry; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
|
||
const VideoDescription = () => ( | ||
<div> | ||
<p>VideoDescription</p> | ||
</div> | ||
); | ||
|
||
export default VideoDescription; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import PropTypes from 'prop-types'; | ||
|
||
let VideoPlayer = (props) => ( | ||
<div> | ||
<p>VideoPlayer</p> | ||
</div> | ||
) | ||
const VideoPlayer = ({ video }) => ( | ||
<div> | ||
<p>{video}</p> | ||
</div> | ||
); | ||
|
||
export default VideoPlayer = VideoPlayer; | ||
VideoPlayer.propTypes = { | ||
video: PropTypes.string.isRequired, | ||
}; | ||
|
||
export default VideoPlayer; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters