parent
a4301f8db0
commit
ccbc8f591b
@ -1,30 +1,31 @@
|
|||||||
import { icons } from 'Helpers/Props';
|
import { icons } from 'Helpers/Props';
|
||||||
|
import { MovieStatus } from 'Movie/Movie';
|
||||||
import translate from 'Utilities/String/translate';
|
import translate from 'Utilities/String/translate';
|
||||||
|
|
||||||
export default function getMovieStatusDetails(status) {
|
export default function getMovieStatusDetails(status: MovieStatus) {
|
||||||
let statusDetails = {
|
let statusDetails = {
|
||||||
icon: icons.ANNOUNCED,
|
icon: icons.ANNOUNCED,
|
||||||
title: translate('Announced'),
|
title: translate('Announced'),
|
||||||
message: translate('AnnouncedMsg')
|
message: translate('AnnouncedMovieDescription'),
|
||||||
};
|
};
|
||||||
|
|
||||||
if (status === 'deleted') {
|
if (status === 'deleted') {
|
||||||
statusDetails = {
|
statusDetails = {
|
||||||
icon: icons.MOVIE_DELETED,
|
icon: icons.MOVIE_DELETED,
|
||||||
title: translate('Deleted'),
|
title: translate('Deleted'),
|
||||||
message: translate('DeletedMsg')
|
message: translate('DeletedMovieDescription'),
|
||||||
};
|
};
|
||||||
} else if (status === 'inCinemas') {
|
} else if (status === 'inCinemas') {
|
||||||
statusDetails = {
|
statusDetails = {
|
||||||
icon: icons.IN_CINEMAS,
|
icon: icons.IN_CINEMAS,
|
||||||
title: translate('InCinemas'),
|
title: translate('InCinemas'),
|
||||||
message: translate('InCinemasMsg')
|
message: translate('InCinemasMovieDescription'),
|
||||||
};
|
};
|
||||||
} else if (status === 'released') {
|
} else if (status === 'released') {
|
||||||
statusDetails = {
|
statusDetails = {
|
||||||
icon: icons.MOVIE_FILE,
|
icon: icons.MOVIE_FILE,
|
||||||
title: translate('Released'),
|
title: translate('Released'),
|
||||||
message: translate('ReleasedMsg')
|
message: translate('ReleasedMovieDescription'),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in new issue