diff --git a/ui/src/views/indexed-nfa/fragments/aside/aside-buttons.fragment.tsx b/ui/src/views/indexed-nfa/fragments/aside/aside-buttons.fragment.tsx index 77520b5..28867f9 100644 --- a/ui/src/views/indexed-nfa/fragments/aside/aside-buttons.fragment.tsx +++ b/ui/src/views/indexed-nfa/fragments/aside/aside-buttons.fragment.tsx @@ -7,6 +7,12 @@ import { AppLog } from '@/utils'; import { IndexedNFA } from '../../indexed-nfa.context'; import { IndexedNFAStyles as S } from '../../indexed-nfa.styles'; +const openseaLink = `https://${ + env.environment === 'development' ? 'testnets' : '' +}.opensea.io/assets/${ + env.environment === 'development' ? 'goerli' : 'ethereum' +}/${FleekERC721.address}`; + type CustomButtonProps = { icon: IconName; }; @@ -26,19 +32,21 @@ const CustomButon = forwardStyledRef( type MenuItemProps = { label: string; iconName: IconName; - onClick: () => void; + href: string; }; const MenuItem: React.FC = ({ label, iconName, - onClick, + href, }: MenuItemProps) => { return ( - - - {label} - + + + + {label} + + ); }; @@ -51,39 +59,24 @@ export const ButtonsFragment: React.FC = () => { AppLog.successToast('Link copied to clipboard'); }; - const handleShareOpenSeaOnClick = (): void => { - window.open( - `https://${ - env.environment === 'development' ? 'testnets' : '' - }.opensea.io/assets/${ - env.environment === 'development' ? 'goerli' : 'ethereum' - }/${FleekERC721.address}/${nfa.tokenId}`, - '_blank' - ); - }; - - const handleShareOnTwitterOnClick = (): void => { - window.open(env.twitter.url, '_blank'); //TODO replace with twitter share - }; - return ( - + {/* TODO remove span and render as fragment */} diff --git a/ui/src/views/indexed-nfa/fragments/aside/aside-tabs.fragment.tsx b/ui/src/views/indexed-nfa/fragments/aside/aside-tabs.fragment.tsx index 9e3de9a..87d0b00 100644 --- a/ui/src/views/indexed-nfa/fragments/aside/aside-tabs.fragment.tsx +++ b/ui/src/views/indexed-nfa/fragments/aside/aside-tabs.fragment.tsx @@ -32,7 +32,7 @@ const OverviewFragment: React.FC = () => { Description - + {nfa.description} diff --git a/ui/src/views/indexed-nfa/indexed-nfa.styles.ts b/ui/src/views/indexed-nfa/indexed-nfa.styles.ts index f09b688..feb521f 100644 --- a/ui/src/views/indexed-nfa/indexed-nfa.styles.ts +++ b/ui/src/views/indexed-nfa/indexed-nfa.styles.ts @@ -128,6 +128,8 @@ export const IndexedNFAStyles = { }, Description: styled('p', { color: '$slate11', + overflowY: 'scroll', + pr: '1rem', }), }, Properties: {