diff --git a/ui/src/views/indexed-nfa/fragments/aside.fragment.tsx b/ui/src/views/indexed-nfa/fragments/aside.fragment.tsx index 900d2b3..9802000 100644 --- a/ui/src/views/indexed-nfa/fragments/aside.fragment.tsx +++ b/ui/src/views/indexed-nfa/fragments/aside.fragment.tsx @@ -16,7 +16,7 @@ import { import { env } from '@/constants'; import { FleekERC721 } from '@/integrations/ethereum/contracts'; import { forwardStyledRef } from '@/theme'; -import { AppLog } from '@/utils'; +import { AppLog, getDate, getRepositoryFromURL } from '@/utils'; import { parseNumberToHexColor } from '@/utils/color'; import { IndexedNFA } from '../indexed-nfa.context'; @@ -73,8 +73,7 @@ const Header: React.FC = () => { {nfa.name} - {/* TODO remove once subrgraph integration is merged */} - 0.5} /> + @@ -110,10 +109,7 @@ const NFAInfo: React.FC = () => { - - {/* TODO: place correct data */} - 12/12/22 - + {getDate(nfa.createdAt)} ); }; @@ -208,18 +204,17 @@ const ButtonsFragment: React.FC = () => { const PropertiesFragment: React.FC = () => { const { nfa } = IndexedNFA.useContext(); - //TODO replace with real data const traitsToShow = useMemo(() => { return [ [nfa.ENS, 'ENS'], - [nfa.gitRepository.id, 'Repository'], + [getRepositoryFromURL(nfa.gitRepository.id), 'Repository'], [10, 'Version'], [nfa.externalURL, 'Domain'], ]; }, [nfa]); return ( - + {traitsToShow.map(([value, label], index) => ( { const { nfa } = IndexedNFA.useContext(); return ( - + Token ID {nfa.tokenId} @@ -258,7 +255,7 @@ const OverviewFragment: React.FC = () => { Description - + {nfa.description} @@ -294,7 +291,7 @@ export const IndexedNFAAsideFragment: React.FC = () => { const { nfa } = IndexedNFA.useContext(); const { backgroundColor } = App.useContext(); - const background = `linear-gradient(230deg, #${backgroundColor} 0%, #181818 80%)`; + const background = `radial-gradient(closest-corner circle at 90% 45%, #${backgroundColor}8c 1% ,#${backgroundColor}57 20%, transparent 40%), radial-gradient(closest-corner circle at 60% 25%, #${backgroundColor} 3%, #${backgroundColor}73 30%, #181818 70%)`; useEffect(() => { setTop(ref.current?.getBoundingClientRect().top); @@ -303,7 +300,7 @@ export const IndexedNFAAsideFragment: React.FC = () => { return (
diff --git a/ui/src/views/indexed-nfa/fragments/main.fragment.tsx b/ui/src/views/indexed-nfa/fragments/main.fragment.tsx index b4ecb2c..68b12e4 100644 --- a/ui/src/views/indexed-nfa/fragments/main.fragment.tsx +++ b/ui/src/views/indexed-nfa/fragments/main.fragment.tsx @@ -14,6 +14,7 @@ import { import { getDate, getRepositoryFromURL, getTimeSince } from '@/utils'; import { IndexedNFAStyles as S } from '../indexed-nfa.styles'; +import { IndexedNFA } from '../indexed-nfa.context'; type SortItem = { value: string; @@ -205,27 +206,31 @@ const apMocks = new Array(20).fill(0).map((_, index) => ({ })); const AccessPointsListFragment: React.FC = () => { - //TODO add infinite scroll + const { + nfa: { accessPoints }, + } = IndexedNFA.useContext(); return ( - {apMocks.map((item, index) => ( + {accessPoints.map((item, index) => ( - + - {item.domain} + {item.id} - {item.owner} + {item.owner.id} 220 views - 2 months ago + + {getTimeSince(item.createdAt)} + diff --git a/ui/src/views/indexed-nfa/indexed-nfa.styles.ts b/ui/src/views/indexed-nfa/indexed-nfa.styles.ts index e036515..b7e9aef 100644 --- a/ui/src/views/indexed-nfa/indexed-nfa.styles.ts +++ b/ui/src/views/indexed-nfa/indexed-nfa.styles.ts @@ -35,6 +35,7 @@ export const IndexedNFAStyles = { borderRadius: '$lg', padding: Spacing, maxWidth: '24rem', + mixBlendMode: 'screen', '@media (max-width: 580px)': { position: 'static', @@ -109,7 +110,7 @@ export const IndexedNFAStyles = { Container: styled('div', { display: 'flex', flexDirection: 'column', - backgroundColor: '$slate4', + backgroundColor: 'rgba(255, 255, 255, 0.06)', borderRadius: '$lg', fontSize: '14px', }),