diff --git a/packages/page-parachains/src/modals/Propose.tsx b/packages/page-parachains/src/modals/Propose.tsx index 7b5130b5bb..c83db02e7f 100644 --- a/packages/page-parachains/src/modals/Propose.tsx +++ b/packages/page-parachains/src/modals/Propose.tsx @@ -82,6 +82,7 @@ function Propose ({ className, onClose }: Props): React.ReactElement { ); const isNameValid = name.length >= 3; + const isValDuplicate = validators.some((a, ai) => validators.some((b, bi) => ai !== bi && a === b)); return ( { size='large' > - + b ('propose from')} @@ -106,25 +107,24 @@ function Propose ({ className, onClose }: Props): React.ReactElement { ('name')} + label={t('parachain name')} onChange={setName} /> - - -

{t('The name for this parachain')}

-
-
- - ('parachain id')} + label={t('requested id (random id pre-filled)')} onChange={setParaId} /> + ('initial balance')} + onChange={setBalance} + /> -

{t('The id of this parachain as known on the network')}

+

{t('The name for this parachain, the id and the allocated/requested balance.')}

@@ -132,7 +132,7 @@ function Propose ({ className, onClose }: Props): React.ReactElement { ('The compiled runtime WASM for the parachain you wish to register.')} isError={!isWasmValid} - label={t('code')} + label={t('validation code')} onChange={_setWasm} placeholder={ wasm && !isWasmValid @@ -140,22 +140,15 @@ function Propose ({ className, onClose }: Props): React.ReactElement { : null } /> -
- -

{t('The WASM validation function for this parachain.')}

-
-
- - ('The genesis state for the parachain.')} isError={!genesisState} - label={t('initial state')} + label={t('genesis state')} onChange={_setGenesisState} /> -

{t('The genesis state for this parachain.')}

+

{t('The WASM validation function as well as the genesis state for this parachain.')}

@@ -172,6 +165,9 @@ function Propose ({ className, onClose }: Props): React.ReactElement { {!validators.length && ( ('You need to supply at last one running validator for your parachain alongside this request.')} /> )} + {isValDuplicate && ( + ('You have duplicated validator entries, ensure each is unique.')} /> + )}