Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions public/static/locales/en/bulkCodes.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"bulkCodesTitle": "Issue Bulk Codes",
"partnerSignupInfo": "Use of this feature by Companies is subject to partnership with Plant-for-the-Planet. Please contact <2>partner@plant-for-the-planet.org</2> for details.",
"bulkCodesDescription1": "Using PlanetCash you can generate thousands of codes in a single operation.",
"bulkCodesDescription2": "You can use this feature to create codes for custom certificates, gift cards, donations on behalf of users and redeemable codes that you can associate with your products.",
"tabCreationMethod": "Creation Method",
Expand Down
3 changes: 2 additions & 1 deletion public/static/locales/en/planetcash.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "PlanetCash",
"partnerSignupInfo": "Use of this feature by Companies is subject to partnership with Plant-for-the-Planet. Please contact <2>partner@plant-for-the-planet.org</2> for details.",
"description": "PlanetCash is a developer friendly tool that extends the Plant-for-the-Planet Platform with APIs and built in tools. PlanetCash balance is a contribution to Plant-for-the-Planet that can be dedicated by the donor to different projects on the platform.",
"termsText": "View Terms & Conditions.",
"learnMoreText": "Learn more about PlanetCash.",
Expand Down Expand Up @@ -28,4 +29,4 @@
"duplicate_account": "You have already created an account for {{country}}",
"default": "Something went wrong while creating an account. Please try after a while."
}
}
}
27 changes: 21 additions & 6 deletions src/features/user/BulkCodes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useTranslation } from 'next-i18next';
import { useTranslation, Trans } from 'next-i18next';
import React, {
ReactElement,
useEffect,
Expand Down Expand Up @@ -156,11 +156,26 @@ export default function BulkCodes({
<DashboardView
title={t('bulkCodes:bulkCodesTitle')}
subtitle={
<p>
{t('bulkCodes:bulkCodesDescription1')}
<br />
{t('bulkCodes:bulkCodesDescription2')}
</p>
<div>
<p>
<Trans i18nKey="bulkCodes:partnerSignupInfo">
Our Planet Cash/Bulk Codes feature is a feature specifically for
Plant-for-the-Planet partners. Feel free to contact us at{' '}
<a
className="planet-links"
href="mailto:partner@plant-for-the-planet.org"
>
partner@plant-for-the-planet.org
</a>{' '}
if you are interested.
</Trans>
</p>
<p>
{t('bulkCodes:bulkCodesDescription1')}
<br />
{t('bulkCodes:bulkCodesDescription2')}
</p>
</div>
}
>
<TabbedView step={step} tabItems={tabConfig}>
Expand Down
57 changes: 36 additions & 21 deletions src/features/user/PlanetCash/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
useContext,
useCallback,
} from 'react';
import { useTranslation } from 'next-i18next';
import { Trans, useTranslation } from 'next-i18next';
import DashboardView from '../../common/Layout/DashboardView';
import TabbedView from '../../common/Layout/TabbedView';
import { TabItem } from '../../common/Layout/TabbedView/TabbedViewTypes';
Expand Down Expand Up @@ -146,26 +146,41 @@ export default function PlanetCash({
<DashboardView
title={t('title')}
subtitle={
<p>
{t('description')}{' '}
<a
className="planet-links"
href="https://www.plant-for-the-planet.org/planetcash/"
target="_blank"
rel="noreferrer"
>
{t('learnMoreText')}
</a>
<br />
<a
className="planet-links"
href="https://www.plant-for-the-planet.org/terms-and-conditions/"
target="_blank"
rel="noreferrer"
>
{t('termsText')}
</a>
</p>
<div>
<p>
<Trans i18nKey="partnerSignupInfo">
Our Planet Cash/Bulk Codes feature is a feature specifically for
Plant-for-the-Planet partners. Feel free to contact us at{' '}
<a
className="planet-links"
href="mailto:partner@plant-for-the-planet.org"
>
partner@plant-for-the-planet.org
</a>{' '}
if you are interested.
</Trans>
</p>
<p>
{t('description')}{' '}
<a
className="planet-links"
href={`https://pp.eco/${i18n.language}/planetcash/`}
target="_blank"
rel="noreferrer"
>
{t('learnMoreText')}
</a>
<br />
<a
className="planet-links"
href={`https://pp.eco/legal/${i18n.language}/terms`}
target="_blank"
rel="noreferrer"
>
{t('termsText')}
</a>
</p>
</div>
}
>
<TabbedView step={step} tabItems={tabConfig}>
Expand Down