11import { TABLE_REFETCH_INTERVAL } from '@/config' ;
22import { useQuery } from '@tanstack/react-query' ;
33import { useEffect } from 'react' ;
4- import { Button } from '@/components/ui/button' ;
54import { getIExec } from '@/externals/iexecSdkClient' ;
6- import { useLoginLogout } from '@/hooks/useLoginLogout' ;
75import { ErrorAlert } from '@/modules/ErrorAlert' ;
86import JsonBlock from '@/modules/JsonBlock' ;
97import useUserStore from '@/stores/useUser.store' ;
@@ -77,8 +75,6 @@ export function TaskRawData({
7775 ( ) => setOutdated ( tasks && ! isLoading && isError ) ,
7876 [ tasks , isLoading , isError , setOutdated ]
7977 ) ;
80- const { address : userAddress } = useUserStore ( ) ;
81- const { login } = useLoginLogout ( ) ;
8278
8379 return hasPastError && ( ! tasks || ! tasks . length ) ? (
8480 < ErrorAlert
@@ -88,17 +84,7 @@ export function TaskRawData({
8884 />
8985 ) : (
9086 < div className = "dark:bg-tooltip flex max-h-none min-h-60 rounded-3xl border bg-[#fafaff] p-6" >
91- { ! userAddress ? (
92- < div className = "flex flex-1 flex-col items-center justify-center gap-6 text-center" >
93- < h1 className = "text-2xl font-bold" > You are not connected</ h1 >
94- < p className = "text-muted-foreground max-w-sm" >
95- To access task raw data please connect your wallet.
96- </ p >
97- < div className = "flex gap-4" >
98- < Button onClick = { login } > Connect wallet</ Button >
99- </ div >
100- </ div >
101- ) : isLoading ? (
87+ { isLoading ? (
10288 < p > Loading...</ p >
10389 ) : (
10490 < JsonBlock className = "w-full" collapsed = { 5 } >
0 commit comments