From 6038a4b9ab8d62fe23f04525015150ab75f1dc86 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 20 May 2020 21:14:37 +0200 Subject: [PATCH] Simple ipfs gateway detection (#2781) * Simple ipfs gateway detection * Include ipns --- packages/page-accounts/src/Accounts/index.tsx | 4 ++++ packages/page-accounts/src/Accounts/useIsIpfs.ts | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 packages/page-accounts/src/Accounts/useIsIpfs.ts diff --git a/packages/page-accounts/src/Accounts/index.tsx b/packages/page-accounts/src/Accounts/index.tsx index ac57c67679..3fedb60589 100644 --- a/packages/page-accounts/src/Accounts/index.tsx +++ b/packages/page-accounts/src/Accounts/index.tsx @@ -16,6 +16,7 @@ import { FormatBalance } from '@polkadot/react-query'; import { Button, Input, Table } from '@polkadot/react-components'; import { useTranslation } from '../translate'; +import useIsIpfs from './useIsIpfs'; import CreateModal from './modals/Create'; import ImportModal from './modals/Import'; import Multisig from './modals/MultisigCreate'; @@ -94,6 +95,7 @@ function Overview ({ className, onStatusChange }: Props): React.ReactElement