import React, { memo } from 'react'; import { Card, Tabs, Row, Col } from 'antd'; import { formatMessage, FormattedMessage } from 'umi/locale'; import styles from './Analysis.less'; import { TimelineChart, Pie } from '@/components/Charts'; import NumberInfo from '@/components/NumberInfo'; const CustomTab = ({ data, currentTabKey: currentKey }) => ( } gap={2} total={`${data.cvr * 100}%`} theme={currentKey !== data.name && 'light'} /> ); const { TabPane } = Tabs; const OfflineData = memo( ({ activeKey, loading, offlineData, offlineChartData, handleTabChange }) => ( {offlineData.map(shop => ( } key={shop.name}>
))}
) ); export default OfflineData;