-
Notifications
You must be signed in to change notification settings - Fork 33
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
chore(Field.Option): remove unused code #4516
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
0809ce5
to
d92f106
Compare
packages/dnb-eufemia/src/extensions/forms/Field/Selection/Selection.tsx
Outdated
Show resolved
Hide resolved
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. |
7c976e0
to
22b8df5
Compare
22b8df5
to
a41a069
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's true. I think the intention from Henrik was that it may be used one time. But I'm fine of removing it.
We just "pick" the props from inside Selection.
🎉 This PR is included in version 10.63.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I don't see that the
Field.Option
code is actually used at all 🤔It's only the types that's used, as the actual JSX code that
Field.Option
had before this PR would never be ran, it would just be overridden inField.Selection
andField.ArraySelection
. And as it says in docs: Field.Option is a pseudo-component that is used by parent components to configure options. It has no use on its own.