diff --git a/app/(protected)/dashboard/index.tsx b/app/(protected)/dashboard/index.tsx index 8b33391..4eefd8e 100644 --- a/app/(protected)/dashboard/index.tsx +++ b/app/(protected)/dashboard/index.tsx @@ -2,7 +2,8 @@ import React, { useState, useEffect, useMemo, useRef } from 'react'; import { View, Text, ScrollView, TouchableOpacity, ActivityIndicator, Dimensions } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import { StatusBar } from 'expo-status-bar'; -import { ChevronDown, ChevronUp, LayoutDashboard } from 'lucide-react-native'; +import { useRouter } from 'expo-router'; +import { ChevronDown, ChevronLeft, ChevronUp, LayoutDashboard } from 'lucide-react-native'; import api from '@/utils/api'; import EchartWrapper from '@/components/EchartWrapper'; import { @@ -22,6 +23,7 @@ const TOOLTIP_BASE = { const screenWidth = Dimensions.get("window").width; export default function DashboardScreen() { + const router = useRouter(); const [chartData, setChartData] = useState({ costiRicavi: null, @@ -206,7 +208,13 @@ export default function DashboardScreen() { - + router.navigate('/')} + className="p-2 -ml-2 rounded-full active:bg-white/20 w-12 items-center justify-center" + > + + + Grafici e Statistiche Dashboard