Skip to content

Commit

Permalink
feat: show utility tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Aug 29, 2024
1 parent 32a0721 commit fe05a3a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/XUDTTag/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useHistory } from 'react-router-dom'
import { Popover } from 'antd'
import styles from './styles.module.scss'

const HIDDEN_TAGS = ['duplicate', 'suspicious', 'utility', 'supply-unlimited', 'out-of-length-range']
const HIDDEN_TAGS = ['duplicate', 'suspicious', 'supply-unlimited', 'out-of-length-range']

const XUDTTag = ({ tagName, to, tooltip = false }: { tagName: string; to?: string; tooltip?: boolean }) => {
const { t, i18n } = useTranslation()
Expand Down
6 changes: 6 additions & 0 deletions src/components/XUDTTag/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@
color: #fa504f;
}

&[data-type='utility'] {
background: #d9f4ff;
border-color: #61c7fa;
color: #2b98e0;
}

span {
font-size: 12px;
font-style: normal;
Expand Down
6 changes: 6 additions & 0 deletions src/pages/Xudts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ const getfilterList = (t: TFunction) => [
title: <XUDTTag tagName="supply-limited" />,
to: '/xudts',
},
{
key: 'utility',
value: t('xudt.tags.utility'),
title: <XUDTTag tagName="utility" />,
to: '/xudts',
},
]

const TokenInfo: FC<{ token: XUDT }> = ({ token }) => {
Expand Down

0 comments on commit fe05a3a

Please sign in to comment.