-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
27 lines (24 loc) · 1.04 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// This file is part of InvenioRDM
// Copyright (C) 2020-2022 CERN.
// Copyright (C) 2020-2022 Northwestern University.
//
// Invenio App RDM is free software; you can redistribute it and/or modify it
// under the terms of the MIT License; see LICENSE file for more details.
import React from "react";
import ReactDOM from "react-dom";
import { getInputFromDOM } from "react-invenio-deposit";
import { RDMDepositForm } from "./RDMDepositFormOverride.js";
import { OverridableContext, overrideStore } from "react-overridable";
const overriddenComponents = overrideStore.getAll();
ReactDOM.render(
<OverridableContext.Provider value={overriddenComponents}>
<RDMDepositForm
record={getInputFromDOM("deposits-record")}
preselectedCommunity={getInputFromDOM("deposits-draft-community")}
files={getInputFromDOM("deposits-record-files")}
config={getInputFromDOM("deposits-config")}
permissions={getInputFromDOM("deposits-record-permissions")}
/>
</OverridableContext.Provider>,
document.getElementById("deposit-form")
);