From f3b5b749f8c127f07e620bd573d52e3d2663cbb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rocchi?= <84542297+rocky-fleek@users.noreply.github.com> Date: Thu, 30 Sep 2021 18:03:24 -0300 Subject: [PATCH] Feat/departure labs nfts (#239) * Added proper package versions and restored public key encoding * Added dab integration * It works ,missing fullwdth image on iframes * Fixed iframes styles --- source/Popup/Views/NFTDetails/index.jsx | 16 +++++++++++----- source/components/Apps/index.jsx | 1 - source/components/Apps/styles.js | 4 ---- source/locales/en/translation.json | 3 +-- source/redux/wallet.js | 2 +- source/ui/NFTDisplayer/index.jsx | 4 ++-- source/ui/NFTDisplayer/styles.js | 15 +++++++++++++-- 7 files changed, 28 insertions(+), 17 deletions(-) diff --git a/source/Popup/Views/NFTDetails/index.jsx b/source/Popup/Views/NFTDetails/index.jsx index 2d6ae6f1..684b08c2 100644 --- a/source/Popup/Views/NFTDetails/index.jsx +++ b/source/Popup/Views/NFTDetails/index.jsx @@ -13,7 +13,7 @@ import AttributesImg from '@assets/icons/nfts/attributes.png'; import AboutImg from '@assets/icons/nfts/about.png'; import { Typography } from '@material-ui/core'; import { setSelectedNft } from '@redux/nfts'; -import { entrepotUrl } from '@shared/constants/urls'; +import { Maximize2 } from 'react-feather'; import extension from 'extensionizer'; import Section from './components/section'; @@ -36,7 +36,8 @@ const NFTDetails = () => { navigator.navigate('home', TABS.NFTS); }; - const openMarketplace = (url) => () => extension.tabs.create({ url: url || entrepotUrl }); + const openNFT = (url) => () => extension.tabs.create({ url }); + const collection = useMemo(() => collections?.find( (col) => col.name === nft?.collection, ), @@ -47,7 +48,7 @@ const NFTDetails = () => {
} - center={nft?.name || `${collection?.name ?? ''} #${nft.index}`} + center={`#${nft.index}`} right={null} />
@@ -55,10 +56,15 @@ const NFTDetails = () => {