From b84adb8bdf5ebbc7d71e904ac89287e4412e739d Mon Sep 17 00:00:00 2001 From: Jaco Date: Tue, 11 May 2021 22:14:55 +0300 Subject: [PATCH] ParaId reservation (#5257) * ParaId reservation * Show reservation fees --- .../src/Parathreads/Actions.tsx | 16 +++- .../src/Parathreads/RegisterId.tsx | 77 +++++++++++++++++++ .../src/Parathreads/RegisterThread.tsx | 76 ++++++++---------- .../src/Parathreads/constants.tsx | 12 +++ 4 files changed, 135 insertions(+), 46 deletions(-) create mode 100644 packages/page-parachains/src/Parathreads/RegisterId.tsx create mode 100644 packages/page-parachains/src/Parathreads/constants.tsx diff --git a/packages/page-parachains/src/Parathreads/Actions.tsx b/packages/page-parachains/src/Parathreads/Actions.tsx index c900bb85c1..a8b1469400 100644 --- a/packages/page-parachains/src/Parathreads/Actions.tsx +++ b/packages/page-parachains/src/Parathreads/Actions.tsx @@ -4,9 +4,10 @@ import React from 'react'; import { Button } from '@polkadot/react-components'; -import { useToggle } from '@polkadot/react-hooks'; +import { useApi, useToggle } from '@polkadot/react-hooks'; import { useTranslation } from '../translate'; +import RegisterId from './RegisterId'; import RegisterThread from './RegisterThread'; interface Props { @@ -15,13 +16,24 @@ interface Props { function Actions ({ className }: Props): React.ReactElement { const { t } = useTranslation(); + const { api } = useApi(); const [isRegisterOpen, toggleRegisterOpen] = useToggle(); + const [isReserveOpen, toggleReserveOpen] = useToggle(); return (