diff --git a/AppBarChart.tsx b/AppPieChart.tsx similarity index 95% rename from AppBarChart.tsx rename to AppPieChart.tsx index cbaa8ee..3e3c67f 100644 --- a/AppBarChart.tsx +++ b/AppPieChart.tsx @@ -7,7 +7,7 @@ export interface Option { label: string; } -export default function AppBarChart({ options }: { options: Option[] }) { +export default function AppPieChart({ options }: { options: Option[] }) { const { width } = useWindowDimensions(); const { colors } = useTheme(); diff --git a/InsightsPage.tsx b/InsightsPage.tsx index b2e9a65..db732b1 100644 --- a/InsightsPage.tsx +++ b/InsightsPage.tsx @@ -2,7 +2,7 @@ import { useFocusEffect } from "@react-navigation/native"; import { useCallback, useState } from "react"; import { ScrollView, View } from "react-native"; import { IconButton, Text } from "react-native-paper"; -import AppBarChart from "./AppBarChart"; +import AppPieChart from "./AppPieChart"; import Chart from "./Chart"; import ConfirmDialog from "./ConfirmDialog"; import DrawerHeader from "./DrawerHeader"; @@ -117,7 +117,7 @@ export default function InsightsPage() { {weekCounts?.length > 0 && ( - ({ label: DAYS[weekCount.week], value: weekCount.count,