mirror of
https://github.com/Radarr/Radarr
synced 2025-10-06 02:32:53 +02:00
32 lines
546 B
JavaScript
32 lines
546 B
JavaScript
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={title}
|
|
>
|
|
{title}
|
|
</Link>
|
|
);
|
|
}
|
|
}
|
|
|
|
MovieTitleLink.propTypes = {
|
|
titleSlug: PropTypes.string.isRequired,
|
|
title: PropTypes.string.isRequired
|
|
};
|
|
|
|
export default MovieTitleLink;
|