diff --git a/src/components/common/ExternalIdLabel.jsx b/src/components/common/ExternalIdLabel.jsx index 9e22e7b2..806ae559 100644 --- a/src/components/common/ExternalIdLabel.jsx +++ b/src/components/common/ExternalIdLabel.jsx @@ -7,7 +7,7 @@ import ExternalIdIcon from './ExternalIdIcon' import { OperationsContext } from '../app/LayoutContext'; import { copyToClipboard } from '../../common/utils' -const ExternalIdLabel = ({ value, style }) => { +const ExternalIdLabel = ({ value, style, iconStyle }) => { const { t } = useTranslation() const { setAlert } = React.useContext(OperationsContext); const getValue = () => { @@ -26,14 +26,14 @@ const ExternalIdLabel = ({ value, style }) => { return ( - - - {t('concept.form.external_id')} + + + {t('concept.form.external_id')} + + + {getValue()} + - - {getValue()} - - ) } diff --git a/src/components/concepts/Locales.jsx b/src/components/concepts/Locales.jsx index 7730682c..f5d293f7 100644 --- a/src/components/concepts/Locales.jsx +++ b/src/components/concepts/Locales.jsx @@ -15,6 +15,7 @@ import { groupBy, forEach, has, compact, without, keys, orderBy, map } from 'lod import { toFullAPIURL, copyURL } from '../../common/utils'; import TagCountLabel from '../common/TagCountLabel'; import { OperationsContext } from '../app/LayoutContext'; +import ExternalIdLabel from '../common/ExternalIdLabel'; const borderColor = 'rgba(0, 0, 0, 0.12)' @@ -78,7 +79,7 @@ const LocaleItem = ({ locale, url }) => { > } - secondary={externalID} + secondary={externalID ? : undefined} sx={{ margin: '2px 0', '.MuiListItemText-primary': {