@@ -10,7 +10,7 @@ import {
1010 TextArea ,
1111} from '@polymathnetwork/ui' ;
1212import validator from '@polymathnetwork/ui/validator' ;
13-
13+ import { MAINNET_NETWORK_ID } from '@polymathnetwork/shared/constants' ;
1414import { applyProviders } from '../../actions/providers' ;
1515
1616const requiredMessage = 'Required.' ;
@@ -65,7 +65,8 @@ const linkTooltip = (title: string) => (
6565 </ Tooltip >
6666) ;
6767
68- export const ApplyFormComponent = ( { handleSubmit, onClose } ) => {
68+ export const ApplyFormComponent = props => {
69+ const { handleSubmit, onClose, networkId } = props ;
6970 return (
7071 < Form onSubmit = { handleSubmit } >
7172 < Grid >
@@ -145,19 +146,39 @@ export const ApplyFormComponent = ({ handleSubmit, onClose }) => {
145146 </ Button >
146147 </ p >
147148
148- < p className = "pui-input-hint" >
149- When you click submit, an email which contains the information entered
150- on that screen will be sent to the Advisory firm(s) you have selected.
151- None of this information is stored on Polymath servers, only your
152- browser's cache. To clear this information, simply clear your
153- browser's cache.
154- </ p >
149+ { networkId === MAINNET_NETWORK_ID ? (
150+ < p className = "pui-input-hint" >
151+ When you click submit, an email which contains the information entered
152+ on that screen will be sent to the Advisory firm(s) you have selected.
153+ None of this information is stored on Polymath servers, only your
154+ browser's cache. To clear this information, simply clear your
155+ browser's cache.
156+ </ p >
157+ ) : (
158+ < p className = "pui-input-hint" >
159+ < strong >
160+ < em >
161+ You are using Token Studio in a testnet environment. When you
162+ click submit, an email WILL NOT be sent to the providers you have
163+ selected. To send an email to the selected providers, please log
164+ into Token Studio with mainnet.
165+ < br />
166+ None of this information is stored on Polymath servers, only your
167+ browser's cache. To clear this information, simply clear your
168+ browser's cache.
169+ </ em >
170+ </ strong >
171+ </ p >
172+ ) }
155173 < br />
156174 </ Form >
157175 ) ;
158176} ;
159177
160- const mapStateToProps = ( { providers : { application } } ) => ( { application } ) ;
178+ const mapStateToProps = ( {
179+ providers : { application } ,
180+ network : { id : networkId } ,
181+ } ) => ( { application, networkId } ) ;
161182
162183const formikEnhancer = withFormik ( {
163184 validationSchema : formSchema ,
0 commit comments