Skip to content

Commit

Permalink
release: v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zzacharo committed Feb 22, 2023
1 parent 2d7d079 commit 0ad7e58
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

Version 2.0.0 (released 2023-02-09)

- Add direct publish workflow for submitting to communities

Version 1.2.0 (released 2023-01-20)

- Always send a `pids` key to the backend. That change is needed as the backend behavior
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-invenio-deposit",
"version": "1.2.0",
"version": "2.0.0",
"description": "React components to build forms in Invenio",
"main": "dist/cjs/index.js",
"browser": "dist/cjs/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ class CommunitySelectionModalComponent extends Component {
onCommunityChange(community);
this.setState({ localChosenCommunity: null, modalOpen: false });
},
// NOTE: We disable the eslint check as the actual destructing leads to a problem
// related to the updated state value. To avoid this, we need to access the
// `this.state` variable directly in the definition of the function so that any
// consumption of it, will return always the latest updated value.
// eslint-disable-next-line react/destructuring-assignment
getChosenCommunity: () => this.state.localChosenCommunity,
userCommunitiesMemberships,
Expand Down
6 changes: 3 additions & 3 deletions src/lib/components/PublishButton/SubmitReviewModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ export class SubmitReviewModal extends Component {
fieldPath="acceptAccessToRecord"
label={
<Trans
defaults="The '{{communityTitle}}' curators will have access to
<bold>view</bold> and <bold>edit</bold> your
upload's metadata and files."
defaults={i18next.t(
"The '{{communityTitle}}' curators will have access to <bold>view</bold> and <bold>edit</bold> your upload's metadata and files."
)}
values={{
communityTitle,
}}
Expand Down

0 comments on commit 0ad7e58

Please sign in to comment.