You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
510 B
TypeScript
19 lines
510 B
TypeScript
2 years ago
|
import React from 'react';
|
||
|
import { Col, Row, Statistic } from 'antd';
|
||
|
import CountUp from 'react-countup';
|
||
|
|
||
|
const formatter = (value: number) => <CountUp end={value} separator="," />;
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Row gutter={16}>
|
||
|
<Col span={12}>
|
||
|
<Statistic title="Active Users" value={112893} formatter={formatter} />
|
||
|
</Col>
|
||
|
<Col span={12}>
|
||
|
<Statistic title="Account Balance (CNY)" value={112893} precision={2} formatter={formatter} />
|
||
|
</Col>
|
||
|
</Row>
|
||
|
);
|
||
|
|
||
|
export default App;
|