diff --git a/src/components/Announcements/Announcements.tsx b/src/components/Announcements/Announcements.tsx index e810ce5..a7e0e8f 100644 --- a/src/components/Announcements/Announcements.tsx +++ b/src/components/Announcements/Announcements.tsx @@ -105,38 +105,42 @@ const Announcements = ({ activeOpacity={1} accessibilityElementHidden={index !== i} > - - {title} - - {subtitle} - ${description}`} - allowFontScaling - baseFontStyle={textStyles} - containerStyle={{ - padding: 0, - flexDirection: 'row', - alignItems: 'flex-start', - }} - tagsStyles={{ - a: { - ...textStyles, - textDecorationLine: 'none', - }, - }} - renderers={{ - div: (_, children, convertedCSSStyles, passProps) => ( - - {children} - - ), - }} - ignoredTags={[...IGNORED_TAGS, 'img', 'br']} - /> + {title && ( + + {title} + + )} + {subtitle && {subtitle}} + {description && ( + ${description}`} + allowFontScaling + baseFontStyle={textStyles} + containerStyle={{ + padding: 0, + flexDirection: 'row', + alignItems: 'flex-start', + }} + tagsStyles={{ + a: { + ...textStyles, + textDecorationLine: 'none', + }, + }} + renderers={{ + div: (_, children, convertedCSSStyles, passProps) => ( + + {children} + + ), + }} + ignoredTags={[...IGNORED_TAGS, 'img', 'br']} + /> + )} ))} diff --git a/src/router/logged-in/screens/HomeScreen.tsx b/src/router/logged-in/screens/HomeScreen.tsx index bc08e80..4b36880 100644 --- a/src/router/logged-in/screens/HomeScreen.tsx +++ b/src/router/logged-in/screens/HomeScreen.tsx @@ -171,8 +171,8 @@ const HomeScreen = ({ navigation }) => { ? cur['meginmal'] : cur['meginmal-ensku'], link: inIcelandic - ? cur['linkur-a-frett'] - : cur['read-more-hlekkur-ensku'], + ? cur['linkur-a-frett'] || t('announcementsLink') + : cur['read-more-hlekkur-ensku'] || t('announcementsLink'), }, ]; }, []),