Compare commits
1 commit
69c2181afa
...
e8a23bd1ca
Author | SHA1 | Date | |
---|---|---|---|
e8a23bd1ca |
1 changed files with 6 additions and 10 deletions
|
@ -3,27 +3,23 @@ import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import VideoItem from "./VideoItem";
|
import VideoItem from "./VideoItem";
|
||||||
import SectionHeading from "./SectionHeading";
|
import SectionHeading from "./SectionHeading";
|
||||||
import {Link} from 'react-router-dom';
|
|
||||||
|
|
||||||
class RandomTopic extends React.Component {
|
class RandomTopic extends React.Component {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<section>
|
<section>
|
||||||
<SectionHeading title={this.props.topicName}/>
|
<SectionHeading title={ this.props.topicName } />
|
||||||
<Grid
|
<Grid
|
||||||
width={450}
|
width={450}
|
||||||
gap={16}>
|
gap={16}>
|
||||||
{this.props.videos.map(video =>
|
{ this.props.videos.map(video =>
|
||||||
<VideoItem id={video.id} title={video.title}/>
|
<VideoItem id={ video.id } title={ video.title } />
|
||||||
)}
|
)}
|
||||||
<Link to="/topics">
|
|
||||||
See All Topics
|
|
||||||
</Link>
|
|
||||||
<Link to="/topics">
|
|
||||||
See All videos of {this.props.topicName} ()
|
|
||||||
</Link>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
<a href="/topics">See All videos</a>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue