fix: habits statistics center CircularProgress

This commit is contained in:
Théo LUDWIG 2024-05-23 00:33:29 +02:00
parent c455326f8e
commit 47bf926fd8
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B

View File

@ -84,8 +84,13 @@ export const HabitsStatistics: React.FC<HabitsStatisticsProps> = (props) => {
mode="elevated" mode="elevated"
style={{ marginVertical: 8, marginHorizontal: 10 }} style={{ marginVertical: 8, marginHorizontal: 10 }}
> >
<Card.Content> <Card.Content
<Text variant="bodyMedium"> style={{
justifyContent: "center",
alignItems: "center",
}}
>
<Text variant="bodyMedium" style={{ marginBottom: 5 }}>
{totalGoalsSuccess} achieved goals in the{" "} {totalGoalsSuccess} achieved goals in the{" "}
{GOAL_FREQUENCIES_TYPES[frequency]} out of{" "} {GOAL_FREQUENCIES_TYPES[frequency]} out of{" "}
{totalGoals}. {totalGoals}.