Add No Release Dates available message

Bogdan 3 months ago
parent d64ee6681f
commit 9d89fcd5cd

@ -9,17 +9,28 @@ import styles from './MovieReleaseDates.css';
interface MovieReleaseDatesProps { interface MovieReleaseDatesProps {
inCinemas: string; inCinemas: string;
physicalRelease: string;
digitalRelease: string; digitalRelease: string;
physicalRelease: string;
} }
function MovieReleaseDates(props: MovieReleaseDatesProps) { function MovieReleaseDates(props: MovieReleaseDatesProps) {
const { inCinemas, physicalRelease, digitalRelease } = props; const { inCinemas, digitalRelease, physicalRelease } = props;
const { showRelativeDates, shortDateFormat, timeFormat } = useSelector( const { showRelativeDates, shortDateFormat, timeFormat } = useSelector(
createUISettingsSelector() createUISettingsSelector()
); );
if (!inCinemas && !physicalRelease && !digitalRelease) {
return (
<div>
<div className={styles.dateIcon}>
<Icon name={icons.MISSING} />
</div>
{translate('NoReleaseDatesAvailableAtTheMoment')}
</div>
);
}
return ( return (
<div> <div>
{inCinemas ? ( {inCinemas ? (

@ -978,6 +978,7 @@
"NoMoveFilesSelf": " No, I'll Move the Files Myself", "NoMoveFilesSelf": " No, I'll Move the Files Myself",
"NoMovieFilesToManage": "No movie files to manage.", "NoMovieFilesToManage": "No movie files to manage.",
"NoMoviesExist": "No movies found, to get started you'll want to add a new movie or import some existing ones.", "NoMoviesExist": "No movies found, to get started you'll want to add a new movie or import some existing ones.",
"NoReleaseDatesAvailableAtTheMoment": "No release dates available at the moment.",
"NoResultsFound": "No results found", "NoResultsFound": "No results found",
"NoTagsHaveBeenAddedYet": "No tags have been added yet", "NoTagsHaveBeenAddedYet": "No tags have been added yet",
"NoUpdatesAreAvailable": "No updates are available", "NoUpdatesAreAvailable": "No updates are available",

Loading…
Cancel
Save