diff --git a/packages/page-parachains/src/Overview/Actions.tsx b/packages/page-parachains/src/Overview/Actions.tsx index b0ec665609..60b71c974c 100644 --- a/packages/page-parachains/src/Overview/Actions.tsx +++ b/packages/page-parachains/src/Overview/Actions.tsx @@ -4,17 +4,35 @@ import React from 'react'; import { Button } from '@polkadot/react-components'; +import { useApi, useToggle } from '@polkadot/react-hooks'; + +import RegisterThread from '../modals/RegisterThread'; +import { useTranslation } from '../translate'; interface Props { className?: string; } -function Actions (): React.ReactElement { +function Actions ({ className }: Props): React.ReactElement { + const { t } = useTranslation(); + const { api } = useApi(); + const [isRegisterOpen, toggleRegisterOpen] = useToggle(); + return ( - <> - - - + + {api.tx.registrar.register && ( + <> +