ghost-portal/packages/apps-routing/src/nfts.ts
Jegor Sidorenko 14c0cb6f7a
NFTs page (#7144)
* NFTs page

* Chore

* Fix no items condition

* Extract ipfs data fetching logic into a separate hook

* Update deps

* @polkadot/app-assets -> @polkadot/app-nfts in headers

* Update packages/page-nfts/src/AccountItems/Item.tsx

Co-authored-by: Jaco <jacogr@gmail.com>

* Update packages/page-nfts/src/translate.ts

Co-authored-by: Jaco <jacogr@gmail.com>

* Remove redundant component

* Add TextEncoder/TextDecoder shims

* Update version

Co-authored-by: Jaco <jacogr@gmail.com>
2022-03-15 15:41:08 +02:00

23 lines
522 B
TypeScript

// Copyright 2017-2022 @polkadot/apps-routing authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { TFunction } from 'i18next';
import type { Route } from './types';
import Component from '@polkadot/app-nfts';
export default function create (t: TFunction): Route {
return {
Component,
display: {
needsApi: [
'tx.uniques.create'
]
},
group: 'network',
icon: 'shopping-cart',
name: 'nfts',
text: t('nav.nfts', 'NFTs', { ns: 'apps-routing' })
};
}