Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Button): element's type supports Link of react-router-dom #2858

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

langz
Copy link
Contributor

@langz langz commented Nov 6, 2023

This is just a "quick fix", making it possible in TypeScript to send Link of react-router-dom as a value to the element prop.

This possibility was removed as part of e030657

I'm not 100% sure about this fix(as I've just reverted(added back any) from this e030657#diff-ece10293b585707067686d660cf459378b2027585fc414e1263e9694b0ed0be2L38

First reported here: https://dnb-it.slack.com/archives/CMXABCHEY/p1699274667145269

I think/hope we could release this as part of v10.11.1(or v10.12.0?), as the reporters are eager for a fix 🙏
Seems like the "problem" was introduced in v10.10.0, should we also try making a release v10.10.1 for this, or is that too much work perhaps? 🤔

Copy link

vercel bot commented Nov 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
eufemia ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2023 8:56am

Copy link

codesandbox-ci bot commented Nov 6, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 66ee611:

Sandbox Source
eufemia-starter Configuration

@langz langz mentioned this pull request Nov 6, 2023
@langz langz requested a review from tujoworker November 6, 2023 14:45
Copy link
Member

@tujoworker tujoworker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix! Looks good. Here's a CSB.

@langz langz changed the title fix(Button): element supports Link of react-router-dom fix(Button): element's type supports Link of react-router-dom Nov 7, 2023
@langz langz merged commit b90acdb into main Nov 7, 2023
@langz langz deleted the fix/support-link-from-react-router-dom branch November 7, 2023 10:45
tujoworker pushed a commit that referenced this pull request Nov 7, 2023
## [10.12.0](v10.11.0...v10.12.0) (2023-11-07)

### ✨ Features

* **MultiInputMask:** add support for multiple inputs ([#2736](#2736)) ([099c823](099c823))
* **useTheme:** return boolean constants: isUi, isSbanken and isEiendom ([#2845](#2845)) ([d3bb9be](d3bb9be))

### 📝 Documentation

* fix heading evels in contribution guide ([e67a05a](e67a05a))
* fix heading levels in contribution guide ([#2853](#2853)) ([4c01854](4c01854))
* **Theme:** enhance info about using the shared theme provider ([#2860](#2860)) ([dec0664](dec0664))

### 🐛 Bug Fixes

* **Button:** element's type supports Link of react-router-dom ([#2858](#2858)) ([b90acdb](b90acdb))
* **DrawerList:** Add focus style for Sbanken theme ([#2856](#2856)) ([1815342](1815342))
* **FormLabel:** move hover color logic to act on properties forId and onClick ([#2848](#2848)) ([43723ab](43723ab))
* **MultiInputMask:** incorrect legend hover and focus within effect ([#2861](#2861)) ([1cd6be4](1cd6be4))
* **PaymentCard:** overlay icon fill color ([#2846](#2846)) ([712a227](712a227))
@tujoworker
Copy link
Member

🎉 This PR is included in version 10.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants