Center without using center
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { Typography, Statistic, Card, Col, Progress} from "antd";
|
import { Typography, Statistic, Card, Col, Progress} from "antd";
|
||||||
const { Text, Link } = Typography;
|
const { Text } = Typography;
|
||||||
|
|
||||||
interface ItemProps {
|
interface ItemProps {
|
||||||
title: string,
|
title: string,
|
||||||
@@ -16,9 +16,9 @@ export default function StatisticItem(props: ItemProps) {
|
|||||||
return (
|
return (
|
||||||
<Col span={8}>
|
<Col span={8}>
|
||||||
<Card>
|
<Card>
|
||||||
<center>
|
<div style={{display: 'flex', alignItems: 'center', justifyContent: 'center'}}>
|
||||||
<View {...props} />
|
<View {...props} />
|
||||||
</center>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
</Col>
|
</Col>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user