Skip to content

Commit

Permalink
creatibutors modal: add overridable RemoteSelectItem content
Browse files Browse the repository at this point in the history
  • Loading branch information
jrcastro2 committed Sep 19, 2024
1 parent c1a8ed3 commit 487d95e
Showing 1 changed file with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import * as Yup from "yup";
import { AffiliationsField } from "./../AffiliationsField";
import { CreatibutorsIdentifiers } from "./CreatibutorsIdentifiers";
import { CREATIBUTOR_TYPE } from "./type";
import Overridable from "react-overridable";

const ModalActions = {
ADD: "add",
Expand Down Expand Up @@ -300,12 +301,20 @@ export class CreatibutorsModal extends Component {
extra: creatibutor,
key: creatibutor.id,
content: (
<Header>
{creatibutor.name} {idString.length ? <>({idString})</> : null}
<Header.Subheader>
{isOrganization ? creatibutor.acronym : affNames}
</Header.Subheader>
</Header>
<Overridable
id="CreatibutorsModal.RemoteSelectItem.content"
creatibutor={creatibutor}
isOrganization={isOrganization}
idString={idString}
affNames={affNames}
>
<Header>
{creatibutor.name} {idString.length ? <>({idString})</> : null}
<Header.Subheader>
{isOrganization ? creatibutor.acronym : affNames}
</Header.Subheader>
</Header>
</Overridable>
),
};
});
Expand Down

0 comments on commit 487d95e

Please sign in to comment.