chore: update i18n on 7.0, fix link not opening in new tab

This commit is contained in:
David Ralph
2022-09-11 17:45:14 +01:00
parent b74b54f0c2
commit 6cbc677183
2 changed files with 15 additions and 5 deletions

View File

@@ -11,7 +11,7 @@
"license": "BSD-3-Clause",
"version": "7.0.0",
"dependencies": {
"@eartharoid/i18n": "1.0.4",
"@eartharoid/i18n": "1.1.0",
"@emotion/react": "^11.10.0",
"@emotion/styled": "^11.10.0",
"@floating-ui/react-dom": "^1.0.0",

View File

@@ -45,11 +45,19 @@ export default function Items({
<span className="subtitle">{collection.description}</span>
</div>
{collection.news === true ? (
<a className="collectionButton" href={collection.news_link}>
<a
className="collectionButton"
href={collection.news_link}
target="_blank"
rel="noopener noreferrer"
>
{variables.getMessage('modals.main.marketplace.learn_more')} <MdOutlineOpenInNew />
</a>
) : (
<button className="collectionButton" onClick={() => collectionFunction(collection.name)}>
<button
className="collectionButton"
onClick={() => collectionFunction(collection.name)}
>
<MdOutlineArrowForward />{' '}
{variables.getMessage('modals.main.marketplace.explore_collection')}
</button>
@@ -80,11 +88,13 @@ export default function Items({
) : null}
{items.length <= 8 ? (
<span className="subtitle">
{variables.getMessage('modals.main.marketplace.product.showing')} {items.length} / {items.length}
{variables.getMessage('modals.main.marketplace.product.showing')} {items.length} /{' '}
{items.length}
</span>
) : (
<span className="subtitle">
{variables.getMessage('modals.main.marketplace.product.showing')} {count} / {items.length}
{variables.getMessage('modals.main.marketplace.product.showing')} {count} /{' '}
{items.length}
</span>
)}
</div>