-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: add oneOf renderer #42
Conversation
src/controls/OneOfControl.tsx
Outdated
|
||
export const OneOfRenderer = withJsonFormsOneOfProps(OneOfControl) | ||
|
||
function CombinatorTitle({ |
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.
Note to self; put this in a different file
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.
Should this be used? This is switching between stylings for the label based on if the label was passed in the controlUISchema and the schema.title?
src/controls/OneOfControl.tsx
Outdated
|
||
export const OneOfRenderer = withJsonFormsOneOfProps(OneOfControl) | ||
|
||
function CombinatorTitle({ |
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.
Should this be used? This is switching between stylings for the label based on if the label was passed in the controlUISchema and the schema.title?
rootSchema: JsonSchema | ||
} | ||
|
||
function handleCombinatorTypeChange({ |
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.
write a test for the default value bug
1b36d73
to
c4e56e9
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.
It looks good to me.
🎉 This PR is included in version 1.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.