Skip to content

Commit

Permalink
override uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
jrcastro2 committed Nov 21, 2022
1 parent 421fe2c commit d750583
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// This file is part of InvenioRDM
// Copyright (C) 2020-2022 CERN.
// Copyright (C) 2020-2021 Northwestern University.
// Copyright (C) 2021 Graz University of Technology.
// Copyright (C) 2021 New York University.
// Copyright (C) 2022 CERN.
//
// 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.
Expand All @@ -18,12 +15,11 @@ import {
RDMEmptyResults as RDMNoSearchResults,
RDMRecordSearchBarElement,
RDMToggleComponent,
} from "../search/components";
} from "../../search/components";
import { http } from "react-invenio-forms";
import { DashboardResultView, DashboardSearchLayoutHOC } from "./base";
import { createSearchAppInit } from "@js/invenio_search_ui";
import { ComputerTabletUploadsItem } from "./uploads_items/ComputerTabletUploadsItem";
import { MobileUploadsItem } from "./uploads_items/MobileUploadsItem";
import { DashboardResultView, DashboardSearchLayoutHOC } from "../base";
import { ComputerTabletUploadsItem } from "../uploads_items/ComputerTabletUploadsItem";
import { MobileUploadsItem } from "../uploads_items/MobileUploadsItem";
import PropTypes from "prop-types";
import {
ContribSearchAppFacets,
Expand Down Expand Up @@ -174,7 +170,7 @@ export const DashboardUploadsSearchLayout = DashboardSearchLayoutHOC({
),
});

const ContribSearchAppFacetsWithConfig = parametrize(ContribSearchAppFacets, {
export const ContribSearchAppFacetsWithConfig = parametrize(ContribSearchAppFacets, {
toogle: true,
});

Expand All @@ -191,5 +187,3 @@ export const defaultComponents = {
"SearchBar.element": RDMRecordSearchBarElement,
"SearchFilters.Toggle.element": RDMToggleComponent,
};

createSearchAppInit(defaultComponents);
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// This file is part of Invenio App RDM
// Copyright (C) 2022 CERN.
//
// 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.

export { defaultComponents } from "./defaultComponents";
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// This file is part of InvenioRDM
// Copyright (C) 2020-2022 CERN.
// Copyright (C) 2020-2021 Northwestern University.
// Copyright (C) 2021 Graz University of Technology.
// Copyright (C) 2021 New York 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 { defaultComponents } from "./defaultComponents";

export const overridenComponents = {
...defaultComponents,
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// This file is part of InvenioRDM
// Copyright (C) 2020-2022 CERN.
// Copyright (C) 2020-2021 Northwestern University.
// Copyright (C) 2021 Graz University of Technology.
// Copyright (C) 2021 New York 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 { createSearchAppInit } from "@js/invenio_search_ui";
import { overridenComponents } from "./override";

createSearchAppInit(overridenComponents);

0 comments on commit d750583

Please sign in to comment.