Skip to content

Commit 8f05967

Browse files
0einstein0slint
authored andcommitted
affiliations: exporting helper functions
1 parent f6ac055 commit 8f05967

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Image } from "../../../Image";
1111
import { Header } from "semantic-ui-react";
1212
import Overridable from "react-overridable";
1313

14-
const makeIdEntry = (identifier) => {
14+
export const makeIdEntry = (identifier) => {
1515
let icon, link;
1616

1717
switch (identifier.scheme) {
@@ -45,7 +45,7 @@ const makeIdEntry = (identifier) => {
4545
);
4646
};
4747

48-
const makeSubheader = (creatibutor, isOrganization) => {
48+
export const makeSubheader = (creatibutor, isOrganization) => {
4949
if (isOrganization) {
5050
const locationPart = [creatibutor?.location_name, creatibutor?.country_name]
5151
?.filter(Boolean)

src/lib/elements/contrib/invenioRDM/records/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66
* // under the terms of the MIT License; see LICENSE file for more details.
77
*/
88

9-
export { AffiliationsSuggestions } from "./AffiliationsSuggestions";
9+
export {
10+
AffiliationsSuggestions,
11+
makeIdEntry,
12+
makeSubheader,
13+
} from "./AffiliationsSuggestions";

0 commit comments

Comments
 (0)