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 20, 2024
1 parent c1a8ed3 commit 123a854
Showing 1 changed file with 16 additions and 7 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 @@ -259,7 +260,7 @@ export class CreatibutorsModal extends Component {
}

return (
<span key={identifier.identifier}>
<span key={identifier.identifier} className="font-weight-normal">
<a href={link} target="_blank" rel="noopener noreferrer">
<Image
src={icon}
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 123a854

Please sign in to comment.