@imposium-hub/components 1.43.3 → 1.43.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,8 +34,8 @@ class AssetsTableTagsPivot extends React.PureComponent<IAssetsTableTagsPivot, {}
34
34
 
35
35
  public render = () : JSX.Element => {
36
36
  const {row: {original: {id, tags}}, assetTags} = this.props;
37
-
38
- const tagsMarkup : JSX.Element[] = tags.map((tag : string) => (
37
+ const tagsArray = [...new Set(tags)];
38
+ const tagsMarkup : JSX.Element[] = tagsArray.map((tag : string) => (
39
39
  <Tag
40
40
  key = {tag}
41
41
  copy = {tag}
@@ -58,7 +58,7 @@ class ImagePreview extends React.PureComponent<IImagePreviewProps, IImagePreview
58
58
  onLoad = {() => this.setState({loaded: true})}
59
59
  src={url}
60
60
  ref={this.imageNode}
61
- className={`asset-preview-background transparent ${!loaded ? 'hidden' : ''}`}
61
+ className={`media-preview ${!loaded ? 'hidden' : ''}`}
62
62
  style={style}
63
63
  />
64
64
  </Portal>
package/constants/copy.ts CHANGED
@@ -24,7 +24,8 @@ export const assets = {
24
24
  uploadButton: 'Upload'
25
25
  },
26
26
  tags: {
27
- add: 'Add new tag'
27
+ add: 'Add new tag',
28
+ duplicated: 'Duplicated Tags: "[dupedTags]" will not be added.'
28
29
  },
29
30
  field: {
30
31
  fieldMismatchError: 'Asset Type mismatch. Field only accepts "[accepts]" assets.',