Skip to content

Commit

Permalink
Core 5072 license typo (#367)
Browse files Browse the repository at this point in the history
* CORE-5072: add license type

* CORE-5072 remove logs

* CORE-5072: lint

* CORE-5072: lint issues
  • Loading branch information
ekachxaidze98 authored Jan 14, 2025
1 parent 95969a1 commit 77cd2a5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/output/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const ScientificOutputTemplate = ({
identifiers: { doi, oai },
mainDataProviderLink,
memberType,
license,
},
useOtherVersions = false,
...passProps
Expand Down Expand Up @@ -227,6 +228,11 @@ const ScientificOutputTemplate = ({
dataProvider={dataProvider.name}
/>
)}
{license && (
<div className={styles.licenseWrapper}>
License: <span className={styles.licenseType}>{license}</span>
</div>
)}
</Search.Sidebar>
</Search>
)
Expand Down
19 changes: 19 additions & 0 deletions templates/output/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -261,3 +261,22 @@
align-items: center;
color: var(--primary);
}

.license-wrapper {
display: flex;
align-items: center;
margin-top: 24px;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 16px;
color: #424242;
letter-spacing: 0.024px;
gap: 10px;
}

.license-type {
padding: 4px 6px;
background: #f5f5f5;
border-radius: 2px;
}

0 comments on commit 77cd2a5

Please sign in to comment.