-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deposit-ui: align license with funding modal
* add pagination and mode switch * prevent modal jumping * aligned styling with funding modal in invenio-vocabularies * closes: inveniosoftware/invenio-app-rdm#2284 Co-authored-by: Talha Muqsit <iammuqsit@gmail.com>
- Loading branch information
1 parent
a6285f8
commit 63d9f5a
Showing
2 changed files
with
80 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
.../assets/semantic-ui/js/invenio_rdm_records/src/deposit/fields/License/NoLicenseResults.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// This file is part of Invenio-RDM-Records | ||
// Copyright (C) 2021-2024 CERN. | ||
// Copyright (C) 2021 Northwestern University. | ||
// Copyright (C) 2025 ZBW – Leibniz-Informationszentrum Wirtschaft. | ||
// | ||
// Invenio 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 PropTypes from "prop-types"; | ||
import React from "react"; | ||
import { Segment } from "semantic-ui-react"; | ||
import { i18next } from "@translations/invenio_rdm_records/i18next"; | ||
|
||
export function NoLicenseResults({ switchToCustom }) { | ||
return ( | ||
<Segment | ||
basic | ||
content={ | ||
<p> | ||
{i18next.t("Did not find your license? ")} | ||
<a | ||
href="/" | ||
onClick={(e) => { | ||
e.preventDefault(); | ||
switchToCustom(); | ||
}} | ||
> | ||
{i18next.t("Add a custom license.")} | ||
</a> | ||
</p> | ||
} | ||
/> | ||
); | ||
} | ||
|
||
NoLicenseResults.propTypes = { | ||
switchToCustom: PropTypes.func.isRequired, | ||
}; |