diff --git a/src/app/components/Charts/StockChartTemplate.tsx b/src/app/components/Charts/StockChartTemplate.tsx index d5d183d03..ff70d9de8 100644 --- a/src/app/components/Charts/StockChartTemplate.tsx +++ b/src/app/components/Charts/StockChartTemplate.tsx @@ -154,7 +154,6 @@ export function StockChartTemplate({ tooltip: { split: false, useHTML: true, - xDateFormat: '%a %e, %b %Y (UTC)', headerFormat: ` diff --git a/src/app/components/NFTPreview/index.tsx b/src/app/components/NFTPreview/index.tsx index c43f06f88..48a29532b 100644 --- a/src/app/components/NFTPreview/index.tsx +++ b/src/app/components/NFTPreview/index.tsx @@ -23,6 +23,8 @@ import audioPause from './audio-pause.svg'; import audioPlay from './audio-play.svg'; import Link from '@zeit-ui/react-icons/link'; import { Link as ALink } from 'app/components/Link/Loadable'; +import { formatString } from 'utils'; +import { Tag } from '@cfxjs/antd'; const epiKProtocolKnowledgeBadge = 'cfx:acev4c2s2ttu3jzxzsd4a2hrzsa4pfc3f6f199y5mk'; @@ -181,10 +183,14 @@ export const NFTPreview = React.memo( contractAddress, tokenId, type = 'preview', + amount = 0, + owner = '', }: { contractAddress?: string; tokenId?: number | string; type?: 'preview' | 'card' | 'primary'; + amount?: number; + owner?: string; }) => { const { t, i18n } = useTranslation(); const lang = i18n.language.includes('zh') ? 'zh' : 'en'; @@ -226,28 +232,35 @@ export const NFTPreview = React.memo( return ( - {imageUri ? ( - contractAddress === epiKProtocolKnowledgeBadge ? ( -
-
{point.key}