From 50a22c1a2eda7006c663e1bc95a25ead41496b01 Mon Sep 17 00:00:00 2001 From: Jaco Date: Thu, 13 May 2021 23:30:18 +0300 Subject: [PATCH] Polulate paraid from owners (#5276) --- .../src/Parathreads/Actions.tsx | 11 +++- .../src/Parathreads/RegisterThread.tsx | 64 +++++++++++++------ .../page-parachains/src/Parathreads/index.tsx | 7 +- packages/page-parachains/src/index.tsx | 1 + 4 files changed, 58 insertions(+), 25 deletions(-) diff --git a/packages/page-parachains/src/Parathreads/Actions.tsx b/packages/page-parachains/src/Parathreads/Actions.tsx index a8b1469400..f7bae9e283 100644 --- a/packages/page-parachains/src/Parathreads/Actions.tsx +++ b/packages/page-parachains/src/Parathreads/Actions.tsx @@ -1,6 +1,8 @@ // Copyright 2017-2021 @polkadot/app-parachains authors & contributors // SPDX-License-Identifier: Apache-2.0 +import type { OwnedId } from '../types'; + import React from 'react'; import { Button } from '@polkadot/react-components'; @@ -12,9 +14,10 @@ import RegisterThread from './RegisterThread'; interface Props { className?: string; + ownedIds: OwnedId[]; } -function Actions ({ className }: Props): React.ReactElement { +function Actions ({ className, ownedIds }: Props): React.ReactElement { const { t } = useTranslation(); const { api } = useApi(); const [isRegisterOpen, toggleRegisterOpen] = useToggle(); @@ -33,11 +36,15 @@ function Actions ({ className }: Props): React.ReactElement { )}