style: lint

pull/9940/head
AkaraChen 2 years ago
parent 4873e6e2a1
commit ff31f0540a

@ -20,7 +20,7 @@ export const decorators = [
return <I18nServer> return <I18nServer>
<Story /> <Story />
</I18nServer> </I18nServer>
} },
] ]
const preview: Preview = { const preview: Preview = {

@ -243,7 +243,7 @@ const Chart: React.FC<IChartProps> = ({
? '' ? ''
: <span>{t('appOverview.analysis.tokenUsage.consumed')} Tokens<span className='text-sm'> : <span>{t('appOverview.analysis.tokenUsage.consumed')} Tokens<span className='text-sm'>
<span className='ml-1 text-gray-500'>(</span> <span className='ml-1 text-gray-500'>(</span>
<span className='text-orange-400'>~{sum(statistics.map(item => parseFloat(get(item, 'total_price', '0')))).toLocaleString('en-US', { style: 'currency', currency: 'USD', minimumFractionDigits: 4 })}</span> <span className='text-orange-400'>~{sum(statistics.map(item => Number.parseFloat(get(item, 'total_price', '0')))).toLocaleString('en-US', { style: 'currency', currency: 'USD', minimumFractionDigits: 4 })}</span>
<span className='text-gray-500'>)</span> <span className='text-gray-500'>)</span>
</span></span>} </span></span>}
textStyle={{ main: `!text-3xl !font-normal ${sumData === 0 ? '!text-gray-300' : ''}` }} /> textStyle={{ main: `!text-3xl !font-normal ${sumData === 0 ? '!text-gray-300' : ''}` }} />

Loading…
Cancel
Save