1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Chain ID field use the same color pattern as the currency symbol field warning message below (#14644)

This commit is contained in:
VSaric 2022-05-19 17:52:17 +02:00 committed by GitHub
parent 5444474d82
commit a5e07b0f18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -436,12 +436,12 @@ const NetworksForm = ({
const rpcUrlError = validateRPCUrl(rpcUrl);
setErrors({
...errors,
chainId: chainIdError,
blockExplorerUrl: blockExplorerError,
rpcUrl: rpcUrlError,
});
setWarnings({
...warnings,
chainId: chainIdError,
ticker: tickerWarning,
});
}
@ -577,7 +577,7 @@ const NetworksForm = ({
disabled={viewOnly}
/>
<FormField
error={errors.chainId?.msg || ''}
warning={warnings.chainId?.msg || ''}
onChange={setChainId}
titleText={t('chainId')}
value={chainId}