Skip to content

Commit

Permalink
Merge branch 'develop' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
remon-nashid committed Aug 19, 2019
2 parents 54c6b7d + 25ec717 commit 1a17880
Showing 1 changed file with 31 additions and 10 deletions.
41 changes: 31 additions & 10 deletions packages/polymath-issuer/src/pages/providers/ApplyForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
TextArea,
} from '@polymathnetwork/ui';
import validator from '@polymathnetwork/ui/validator';

import { MAINNET_NETWORK_ID } from '@polymathnetwork/shared/constants';
import { applyProviders } from '../../actions/providers';

const requiredMessage = 'Required.';
Expand Down Expand Up @@ -65,7 +65,8 @@ const linkTooltip = (title: string) => (
</Tooltip>
);

export const ApplyFormComponent = ({ handleSubmit, onClose }) => {
export const ApplyFormComponent = props => {
const { handleSubmit, onClose, networkId } = props;
return (
<Form onSubmit={handleSubmit}>
<Grid>
Expand Down Expand Up @@ -145,19 +146,39 @@ export const ApplyFormComponent = ({ handleSubmit, onClose }) => {
</Button>
</p>

<p className="pui-input-hint">
When you click submit, an email which contains the information entered
on that screen will be sent to the Advisory firm(s) you have selected.
None of this information is stored on Polymath servers, only your
browser&apos;s cache. To clear this information, simply clear your
browser&apos;s cache.
</p>
{networkId === MAINNET_NETWORK_ID ? (
<p className="pui-input-hint">
When you click submit, an email which contains the information entered
on that screen will be sent to the Advisory firm(s) you have selected.
None of this information is stored on Polymath servers, only your
browser&apos;s cache. To clear this information, simply clear your
browser&apos;s cache.
</p>
) : (
<p className="pui-input-hint">
<strong>
<em>
You are using Token Studio in a testnet environment. When you
click submit, an email WILL NOT be sent to the providers you have
selected. To send an email to the selected providers, please log
into Token Studio with mainnet.
<br />
None of this information is stored on Polymath servers, only your
browser&apos;s cache. To clear this information, simply clear your
browser&apos;s cache.
</em>
</strong>
</p>
)}
<br />
</Form>
);
};

const mapStateToProps = ({ providers: { application } }) => ({ application });
const mapStateToProps = ({
providers: { application },
network: { id: networkId },
}) => ({ application, networkId });

const formikEnhancer = withFormik({
validationSchema: formSchema,
Expand Down

0 comments on commit 1a17880

Please sign in to comment.