Add No Release Dates available message

This commit is contained in:
Bogdan 2024-02-16 03:07:39 +02:00
parent d64ee6681f
commit 9d89fcd5cd
2 changed files with 14 additions and 2 deletions

View File

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

View File

@ -978,6 +978,7 @@
"NoMoveFilesSelf": " No, I'll Move the Files Myself",
"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.",
"NoReleaseDatesAvailableAtTheMoment": "No release dates available at the moment.",
"NoResultsFound": "No results found",
"NoTagsHaveBeenAddedYet": "No tags have been added yet",
"NoUpdatesAreAvailable": "No updates are available",