Add copyable SID to Account and Application edit pages

This commit is contained in:
James Nuanez committed 2020-07-25 14:37:27 -07:00
1 parent 49caba6c9f
commit 64d2a40769
3 files changed
+79 -2

No files matched your search

+12 -1
View File
@@ -13,6 +13,7 @@ import Loader from '../blocks/Loader';
import Button from '../elements/Button';
import Link from '../elements/Link';
import Tooltip from '../elements/Tooltip';
import CopyableText from '../elements/CopyableText';
const AccountForm = props => {
let history = useHistory();
@@ -342,7 +343,9 @@ const AccountForm = props => {
height={
props.type === 'setup'
? '309px'
: '292px'
: props.type === 'edit'
? '381px'
: '292px'
}
/>
: <Form
@@ -350,6 +353,14 @@ const AccountForm = props => {
wideLabel={props.type === 'edit'}
onSubmit={handleSubmit}
>
{props.type === 'edit' && (
<React.Fragment>
<Label>AccountSid</Label>
<CopyableText text={accountSid} textType="AccountSid" />
</React.Fragment>
)}
{(props.type === 'add' || props.type === 'edit') && (
<React.Fragment>
<Label htmlFor="name">Name</Label>