diff --git a/web/pages/components/statistic.tsx b/web/pages/components/statistic.tsx index 45cca053e..64910e443 100644 --- a/web/pages/components/statistic.tsx +++ b/web/pages/components/statistic.tsx @@ -7,16 +7,18 @@ interface ItemProps { prefix: JSX.Element, color: string, progress?: boolean, + centered: boolean, }; export default function StatisticItem(props: ItemProps) { const { title, value, prefix } = props; const View = props.progress ? ProgressView : StatisticView; + const style = props.centered ? {display: 'flex', alignItems: 'center', justifyContent: 'center'} : {}; return (