diff --git a/.changeset/spotty-coats-admire.md b/.changeset/spotty-coats-admire.md new file mode 100644 index 00000000000..cc7e6893deb --- /dev/null +++ b/.changeset/spotty-coats-admire.md @@ -0,0 +1,5 @@ +--- +'@talend/design-system': patch +--- + +Pass hideExternal to Linkable component diff --git a/packages/design-system/src/components/Link/Link.tsx b/packages/design-system/src/components/Link/Link.tsx index 2bb68c44fea..990c03aa694 100644 --- a/packages/design-system/src/components/Link/Link.tsx +++ b/packages/design-system/src/components/Link/Link.tsx @@ -1,12 +1,13 @@ import { forwardRef, ReactElement, Ref, useCallback, useMemo } from 'react'; +import { useTranslation } from 'react-i18next'; import classNames from 'classnames'; -import { useTranslation } from 'react-i18next'; + import { DeprecatedIconNames } from '../../types'; +import { I18N_DOMAIN_DESIGN_SYSTEM } from '../constants'; import { Linkable, LinkableType, isBlank as targetCheck } from '../Linkable'; import style from './Link.module.scss'; -import { I18N_DOMAIN_DESIGN_SYSTEM } from '../constants'; export type LinkComponentProps = { /** The icon to display before */ @@ -19,7 +20,7 @@ export type LinkProps = Omit & LinkComponentProps; const Link = forwardRef( ( - { children, disabled, href, target, title, hideExternalIcon, ...rest }: LinkProps, + { children, disabled, href, target, title, ...rest }: LinkProps, ref: Ref, ) => { const { t } = useTranslation(I18N_DOMAIN_DESIGN_SYSTEM);