fix: weather modal, remove tasks/savings, fix HA controls, safe-area BottomNav
All checks were successful
Deploy to Coolify / deploy (push) Successful in 3s

This commit is contained in:
Cosmo
2026-04-22 10:42:41 +00:00
parent a2fb233363
commit 98fdcafb73
6 changed files with 220 additions and 162 deletions

View File

@@ -7,10 +7,10 @@ import BottomNav from "@/components/BottomNav";
import LightCard from "@/components/cards/LightCard";
import TemperatureCard from "@/components/cards/TemperatureCard";
import AirPurifierCard from "@/components/cards/AirPurifierCard";
import TasksCard from "@/components/cards/TasksCard";
import WeatherCard from "@/components/cards/WeatherCard";
import RoomsRow from "@/components/RoomsRow";
import { useHA, useWeather, useTasks } from "@/hooks/useHA";
import { useHA, useWeather } from "@/hooks/useHA";
// Stagger container variants
const containerVariants = {
@@ -30,7 +30,6 @@ export default function Home() {
const { data: haData, loading: haLoading, refresh: refreshHA } = useHA(15000);
const weather = useWeather();
const { tasks, refresh: refreshTasks } = useTasks();
// Apply theme to html element
useEffect(() => {
@@ -299,20 +298,6 @@ export default function Home() {
</motion.div>
)}
{/* ═══════════════ TASKS TAB ═══════════════ */}
{activeTab === "tasks" && (
<motion.div
key="tasks"
className="h-full max-w-2xl mx-auto w-full"
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, y: -20 }}
transition={{ duration: 0.25 }}
>
<TasksCard tasks={tasks} onUpdate={refreshTasks} />
</motion.div>
)}
{/* ═══════════════ SETTINGS TAB ═══════════════ */}
{activeTab === "settings" && (
<motion.div