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

Deposit form: Provide props to overridable components #2807

Merged

Conversation

max-moser
Copy link
Contributor

Some of the <Overridable> components have been using values that weren't passed as props.
This makes it hard to provide overrides for those components that are functionally the same.

For example, I am writing an override for the InvenioAppRdm.Deposit.CardDepositStatusBox.container for Invenio-Curations which adds a section for the curation review request.
Without passing the props, this override couldn't access the props.permissions which is used by the default component to enable/disable some buttons.

With the props being passed, I can use it as expected:
image

Copy link
Contributor

@fenekku fenekku left a comment

Choose a reason for hiding this comment

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

Just one more props to pass. 👍

* some of the overridable components have been using values that weren't
  passed as props
@max-moser max-moser merged commit 5effe0f into inveniosoftware:maint-v12.x Aug 26, 2024
4 checks passed
@max-moser max-moser deleted the mm/overridables-props branch August 26, 2024 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants