diff --git a/src/pages/home/report/LinkPreviewer.js b/src/pages/home/report/LinkPreviewer.js index 1da48efe91d1..ca5614fe2208 100644 --- a/src/pages/home/report/LinkPreviewer.js +++ b/src/pages/home/report/LinkPreviewer.js @@ -5,6 +5,8 @@ import _ from 'underscore'; import {uniqBy} from 'lodash'; import useWindowDimensions from '../../../hooks/useWindowDimensions'; import Text from '../../../components/Text'; +import TextLink from '../../../components/TextLink'; +import * as StyleUtils from '../../../styles/StyleUtils'; import styles from '../../../styles/styles'; import variables from '../../../styles/variables'; import colors from '../../../styles/colors'; @@ -103,13 +105,13 @@ function LinkPreviewer(props) { )} {!_.isEmpty(title) && ( - {title} - + )} {!_.isEmpty(description) && {description}} {!_.isEmpty(image) && IMAGE_TYPES.includes(image.type) && ( diff --git a/src/styles/StyleUtils.js b/src/styles/StyleUtils.js index b7cbdaa20ee2..e38ef7bc0c3c 100644 --- a/src/styles/StyleUtils.js +++ b/src/styles/StyleUtils.js @@ -355,6 +355,18 @@ function getBackgroundColorStyle(backgroundColor) { }; } +/** + * Returns a style for text color + * + * @param {String} color + * @returns {Object} + */ +function getTextColorStyle(color) { + return { + color, + }; +} + /** * Returns a style with the specified borderColor * @@ -1230,6 +1242,7 @@ export { getAutoGrowHeightInputStyle, getBackgroundAndBorderStyle, getBackgroundColorStyle, + getTextColorStyle, getBorderColorStyle, getBackgroundColorWithOpacityStyle, getBadgeColorStyle,