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

V3.1.0 #233

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
Changes
=======

Version v3.1.0 (released 2025-01-24)

- modal: add support for custom modal SUI props

Version v3.0.0 (released 2024-12-10)

- tests: remove invenio-admin dependency
Expand Down
2 changes: 1 addition & 1 deletion invenio_administration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

from .ext import InvenioAdministration

__version__ = "3.0.0"
__version__ = "3.1.0"

__all__ = ["InvenioAdministration"]
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Overridable from "react-overridable";

class ActionModal extends Component {
render() {
const { children, modalOpen, resource } = this.props;
const { children, modalOpen, modalProps, resource } = this.props;

return (
<Overridable
Expand All @@ -21,7 +21,7 @@ class ActionModal extends Component {
children={children}
resource={resource}
>
<Modal role="dialog" open={modalOpen}>
<Modal role="dialog" open={modalOpen} {...modalProps}>
{children}
</Modal>
</Overridable>
Expand All @@ -32,11 +32,13 @@ class ActionModal extends Component {
ActionModal.propTypes = {
children: PropTypes.object,
modalOpen: PropTypes.bool,
modalProps: PropTypes.object,
resource: PropTypes.object.isRequired,
};

ActionModal.defaultProps = {
modalOpen: false,
modalProps: {},
children: null,
};

Expand Down
Loading