Compare commits

..

1 commit

Author SHA1 Message Date
e8a23bd1ca add random topic items count to state 2018-12-07 19:37:57 +02:00

View file

@ -3,7 +3,6 @@ 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 {
@ -17,13 +16,10 @@ class RandomTopic extends React.Component {
{ 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>
) )