Display contracts with camelCase (#3901)

This commit is contained in:
Jaco Greeff 2020-10-20 07:49:58 +02:00 committed by GitHub
parent f597ebae61
commit 0868f3eb29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,7 @@ import React from 'react';
import styled from 'styled-components';
import { Icon, Tooltip } from '@polkadot/react-components';
import { encodeTypeDef } from '@polkadot/types';
import { stringCamelCase } from '@polkadot/util';
import { useTranslation } from '../translate';
@ -31,7 +32,7 @@ function MessageSignature ({ className, message: { args, identifier, isConstruct
return (
<div className={className}>
<span className='ui--MessageSignature-name'>{identifier}</span>
<span className='ui--MessageSignature-name'>{stringCamelCase(identifier)}</span>
{' '}({args.map(({ name, type }, index): React.ReactNode => {
return (
<React.Fragment key={`${name}-args-${index}`}>