From 77e2160508bde7c5ef0d9a2908d8bba7bfebd1b9 Mon Sep 17 00:00:00 2001 From: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> Date: Tue, 11 Aug 2020 18:35:59 +0200 Subject: [PATCH] Show identity deposit info (#3387) * looks horrible * back to something simple * Balance input * no extra fields * back to unknown * remove example --- .../page-accounts/src/Accounts/modals/IdentityMain.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/page-accounts/src/Accounts/modals/IdentityMain.tsx b/packages/page-accounts/src/Accounts/modals/IdentityMain.tsx index a0357c4807..90de65adc9 100644 --- a/packages/page-accounts/src/Accounts/modals/IdentityMain.tsx +++ b/packages/page-accounts/src/Accounts/modals/IdentityMain.tsx @@ -6,7 +6,7 @@ import { Registration } from '@polkadot/types/interfaces'; import React, { useEffect, useState } from 'react'; import styled from 'styled-components'; -import { Input, Modal, Toggle, TxButton } from '@polkadot/react-components'; +import { Input, InputBalance, Modal, Toggle, TxButton } from '@polkadot/react-components'; import { getAddressMeta } from '@polkadot/react-components/util'; import { useApi, useCall } from '@polkadot/react-hooks'; import { Data, Option } from '@polkadot/types'; @@ -94,6 +94,7 @@ function IdentityMain ({ address, className = '', onClose }: Props): React.React const [valRiot, setValRiot] = useState(''); const [valTwitter, setValTwitter] = useState(''); const [valWeb, setValWeb] = useState(''); + const { basicDeposit } = api.consts.identity; const [gotPreviousIdentity, setGotPreviousIdentity] = useState(false); useEffect((): void => { @@ -239,6 +240,12 @@ function IdentityMain ({ address, className = '', onClose }: Props): React.React value={hasRiot ? valRiot : ''} /> + ('Total amount of fund that will be reserved. These funds are returned when the identity is cleared')} + isDisabled + label={t('total deposit')} + />