From 8221884e7e35ff9b19338057f0b9342aa1383fdf Mon Sep 17 00:00:00 2001 From: Khac Vy Date: Mon, 20 Apr 2020 12:49:12 +0700 Subject: [PATCH] chore: #830 Add space between texts in tag component (#955) --- packages/elements/.storybook/webpack.config.js | 4 ++-- .../__tests__/__snapshots__/custom-tag.tsx.snap | 1 + .../elements/src/components/DropdownSelect/custom-tag.tsx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/elements/.storybook/webpack.config.js b/packages/elements/.storybook/webpack.config.js index 5d5e4429cf..2eac35b36c 100644 --- a/packages/elements/.storybook/webpack.config.js +++ b/packages/elements/.storybook/webpack.config.js @@ -1,6 +1,6 @@ const { EnvironmentPlugin } = require('webpack') const path = require('path') -// const configEnv = require('../config.json') +const configEnv = require('../config.json') const { getVersionTag } = require('../../../scripts/release/utils') module.exports = ({ config }) => { @@ -49,7 +49,7 @@ module.exports = ({ config }) => { ) config.resolve.extensions.push('.ts', '.tsx') config.plugins.push(new EnvironmentPlugin({ - // ...configEnv, + ...configEnv, APP_VERSION: `${getVersionTag().version}`, })) return config diff --git a/packages/elements/src/components/DropdownSelect/__tests__/__snapshots__/custom-tag.tsx.snap b/packages/elements/src/components/DropdownSelect/__tests__/__snapshots__/custom-tag.tsx.snap index 2efd8895a2..7223a86e23 100644 --- a/packages/elements/src/components/DropdownSelect/__tests__/__snapshots__/custom-tag.tsx.snap +++ b/packages/elements/src/components/DropdownSelect/__tests__/__snapshots__/custom-tag.tsx.snap @@ -8,6 +8,7 @@ exports[`CustomTag should match a snapshot 1`] = ` > The type of Property will be given to an application that can be launched for a specific property from Agency Cloud. + For more information on diff --git a/packages/elements/src/components/DropdownSelect/custom-tag.tsx b/packages/elements/src/components/DropdownSelect/custom-tag.tsx index 5646507c9b..332bf9a8a2 100644 --- a/packages/elements/src/components/DropdownSelect/custom-tag.tsx +++ b/packages/elements/src/components/DropdownSelect/custom-tag.tsx @@ -20,7 +20,7 @@ export const CustomTag: React.FC = ({ label, description, link, placement="bottomLeft" overlay={ - {description} + {description}{' '} {link && ( For more information on {label}, please{' '}