Modify the modal title to include selected image array length

This commit is contained in:
Daniel Abrao 2024-04-13 23:58:30 -03:00 committed by psychedelicious
parent ec69a58c8d
commit cc256fee0e

View File

@ -80,7 +80,7 @@ const DeleteImageModal = () => {
return (
<ConfirmationAlertDialog
title={t('gallery.deleteImage')}
title={t(imagesToDelete.length > 1 ? 'gallery.deleteImage_plural' : 'gallery.deleteImage', { 'count': imagesToDelete.length } )}
isOpen={isModalOpen}
onClose={handleClose}
cancelButtonText={t('boards.cancel')}