Skip to content

Commit

Permalink
feat(nft-tags): remove unused tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Daryl-L committed Jul 3, 2024
1 parent 96bc408 commit c6aa3ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 35 deletions.
36 changes: 3 additions & 33 deletions src/pages/NftCollections/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,36 +82,6 @@ const filterList = [
title: <XUDTTag tagName="layer-2-asset" />,
to: '/nft-collections',
},
{
key: 'verified-on',
value: 'verified-on',
title: <XUDTTag tagName="verified-on" />,
to: '/nft-collections',
},
{
key: 'supply-limited',
value: 'supply-limited',
title: <XUDTTag tagName="supply-limited" />,
to: '/nft-collections',
},
{
key: 'supply-unlimited',
value: 'supply-unlimited',
title: <XUDTTag tagName="supply-unlimited" />,
to: '/nft-collections',
},
{
key: 'rgbpp-compatible',
value: 'rgbpp-compatible',
title: <XUDTTag tagName="rgbpp-compatible" />,
to: '/nft-collections',
},
{
key: 'category',
value: 'category',
title: <XUDTTag tagName="category" />,
to: '/nft-collections',
},
]

export const isTxFilterType = (s?: string): boolean => {
Expand Down Expand Up @@ -158,7 +128,7 @@ const Tags = () => {
return (
<div className={styles.colTags}>
{t('xudt.title.tags')}
<MultiFilterButton filterName="tags" key="" filteredList={filterList} />
<MultiFilterButton filterName="tags" key="" filterList={filterList} />
</div>
)
}
Expand Down Expand Up @@ -385,7 +355,7 @@ export const ListOnMobile: React.FC<{ isLoading: boolean; list: NFTCollection[]
<SimpleSortHeader sortField="timestamp" fieldI18n={t('nft.created_time')} />
<div>
{t('xudt.title.tags')}
<MultiFilterButton filterName="tags" key="" filteredList={filterList} />
<MultiFilterButton filterName="tags" key="" filterList={filterList} />
</div>
</FilterSortContainerOnMobile>
</Card>
Expand Down Expand Up @@ -485,7 +455,7 @@ export const ListOnMobile: React.FC<{ isLoading: boolean; list: NFTCollection[]
)
})
) : (
<div className={styles.loading}>{isLoading ? 'loading' : t(`nft.no_record`)}</div>
<div className={styles.noRecord}>{isLoading ? 'loading' : t(`nft.no_record`)}</div>
)}
</div>
</>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/NftCollections/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ const NftCollections = () => {
</div>
<div className={styles.list}>
{isMobile ? (
<ListOnMobile isLoading={isLoading} list={list} />
<ListOnMobile isLoading={isLoading} list={tags === '' ? [] : list} />
) : (
<ListOnDesktop isLoading={isLoading} list={list} />
<ListOnDesktop isLoading={isLoading} list={tags === '' ? [] : list} />
)}
</div>

Expand Down
1 change: 1 addition & 0 deletions src/pages/NftCollections/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@
}

.noRecord {
background-color: #fff;
text-align: center;
}

Expand Down

0 comments on commit c6aa3ad

Please sign in to comment.