ui refactor

This commit is contained in:
2026-08-09 15:06:25 +02:00
parent 1122daa17a
commit 7b3c1e6bba
4 changed files with 15 additions and 2 deletions
+7
View File
@@ -12,6 +12,13 @@ const App: React.FC = () => {
const [loading, setLoading] = useState(true);
const [error, setError] = useState<string | null>(null);
useEffect(() => {
if (error) {
const timer = setTimeout(() => setError(null), 5000);
return () => clearTimeout(timer);
}
}, [error]);
useEffect(() => {
loadTasks();
}, []);