You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Radarr/frontend/src/Movie/MovieTitleLink.js

29 lines
509 B

import PropTypes from 'prop-types';
import React, { PureComponent } from 'react';
import Link from 'Components/Link/Link';
class MovieTitleLink extends PureComponent {
render() {
const {
titleSlug,
title
} = this.props;
const link = `/movie/${titleSlug}`;
return (
<Link to={link}>
{title}
</Link>
);
}
}
MovieTitleLink.propTypes = {
titleSlug: PropTypes.string.isRequired,
title: PropTypes.string.isRequired
};
export default MovieTitleLink;