diff --git a/Changelog.md b/Changelog.md index cab03261d..4a6862d3e 100644 --- a/Changelog.md +++ b/Changelog.md @@ -7,6 +7,12 @@ This project does _not_ adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it every new version is a new major version. +## 196.0.0 - 2025-01-13 + +### Changed + +- `ExternalLink`: The `label` prop now defaults to the value of `href`. + ## 195.0.0 - 2025-01-09 ### Added diff --git a/package.json b/package.json index 26cc2bda3..1a24367d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nordicsemiconductor/pc-nrfconnect-shared", - "version": "195.0.0", + "version": "196.0.0", "description": "Shared commodities for developing pc-nrfconnect-* packages", "repository": { "type": "git", diff --git a/src/Link/ExternalLink.tsx b/src/Link/ExternalLink.tsx index 9bd4b62c6..fd2a5ce59 100644 --- a/src/Link/ExternalLink.tsx +++ b/src/Link/ExternalLink.tsx @@ -8,7 +8,7 @@ import React from 'react'; import classNames from '../utils/classNames'; -export default ({ label, href }: { label: string; href: string }) => ( +export default ({ href, label = href }: { href: string; label?: string }) => (