fix(ui): conditional display of message

This commit is contained in:
psychedelicious
2025-05-30 12:42:39 +10:00
parent c1d230f961
commit 98a44fa4d7

View File

@@ -147,12 +147,13 @@ const DeleteBoardModal = () => {
bottomMessage={t('boards.bottomMessage')}
/>
)}
<Text>
{boardToDelete !== 'none' &&
(boardToDelete.is_private
{boardToDelete !== 'none' && (
<Text>
{boardToDelete.is_private
? t('boards.deletedPrivateBoardsCannotbeRestored')
: t('boards.deletedBoardsCannotbeRestored'))}
</Text>
: t('boards.deletedBoardsCannotbeRestored')}
</Text>
)}
<Text>{t('gallery.deleteImagePermanent')}</Text>
</Flex>
</AlertDialogBody>