@@ -12,6 +12,7 @@ import type { Task } from "@shared/types";
1212import type React from "react" ;
1313import { useCallback , useEffect , useMemo , useRef , useState } from "react" ;
1414import { useHotkeys } from "react-hotkeys-hook" ;
15+ import { useAuthStore } from "../stores/authStore" ;
1516import { useStatusBarStore } from "../stores/statusBarStore" ;
1617import { useTaskStore } from "../stores/taskStore" ;
1718import { AsciiArt } from "./AsciiArt" ;
@@ -55,6 +56,7 @@ export function TaskList({
5556 const setFilter = useTaskStore ( ( state ) => state . setFilter ) ;
5657
5758 const { setStatusBar, reset } = useStatusBarStore ( ) ;
59+ const { logout } = useAuthStore ( ) ;
5860 const listRef = useRef < HTMLDivElement > ( null ) ;
5961
6062 useEffect ( ( ) => {
@@ -279,9 +281,12 @@ export function TaskList({
279281 if ( error ) {
280282 return (
281283 < Box height = "100%" p = "6" >
282- < Flex direction = "column" align = "center" justify = "center" height = "100%" >
284+ < Flex direction = "column" align = "center" justify = "center" height = "100%" gap = "4" >
283285 < Text color = "red" > { error } </ Text >
284- < Button onClick = { ( ) => fetchTasks ( ) } > Retry</ Button >
286+ < Flex gap = "2" >
287+ < Button onClick = { ( ) => fetchTasks ( ) } > Retry</ Button >
288+ < Button variant = "outline" onClick = { logout } > Logout</ Button >
289+ </ Flex >
285290 </ Flex >
286291 </ Box >
287292 ) ;
0 commit comments