@@ -113,71 +113,72 @@ export default function RecentVerifications({ className = "" }: RecentVerificati
113
113
</ div >
114
114
) }
115
115
{ jobs . length > 0 && (
116
- < div
116
+ < button
117
+ type = "button"
117
118
onClick = { handleClearAll }
118
- className = "flex items-center space-x-1 text-sm text-gray-500 hover:text-red-600"
119
+ className = "flex items-center space-x-1 text-sm text-gray-500 hover:text-red-600 focus:outline-none "
119
120
>
120
121
< IoTrashOutline className = "w-4 h-4" />
121
122
< span > Clear All</ span >
122
- </ div >
123
+ </ button >
123
124
) }
124
125
</ div >
125
126
</ div >
126
127
127
128
< div className = "overflow-x-auto" >
128
129
< table className = "w-full min-w-[600px]" >
129
- < thead >
130
- < tr className = "border-b border-gray-300" >
131
- < th className = "py-2 text-left text-sm font-medium text-gray-900" > Date</ th >
132
- < th className = "py-2 px-4 text-left text-sm font-medium text-gray-900" > Job ID</ th >
133
- < th className = "py-2 px-4 text-left text-sm font-medium text-gray-900" > Chain</ th >
134
- < th className = "py-2 px-4 text-left text-sm font-medium text-gray-900" > Address</ th >
135
- < th className = "py-2 text-left text-sm font-medium text-gray-900" > Status</ th >
136
- </ tr >
137
- </ thead >
138
- < tbody >
139
- { displayedJobs . map ( ( job ) => (
140
- < tr key = { job . verificationId } className = "border-b border-gray-200 hover:bg-gray-100" >
141
- < td className = "py-2 text-sm text-gray-700" >
142
- < div >
143
- < div className = "text-[0.65rem] text-gray-500" >
144
- { new Date ( job . submittedAt ) . toLocaleTimeString ( [ ] , { hour : "2-digit" , minute : "2-digit" } ) } (
145
- { Intl . DateTimeFormat ( ) . resolvedOptions ( ) . timeZone } )
130
+ < thead >
131
+ < tr className = "border-b border-gray-300" >
132
+ < th className = "py-2 text-left text-sm font-medium text-gray-900" > Date</ th >
133
+ < th className = "py-2 px-4 text-left text-sm font-medium text-gray-900" > Job ID</ th >
134
+ < th className = "py-2 px-4 text-left text-sm font-medium text-gray-900" > Chain</ th >
135
+ < th className = "py-2 px-4 text-left text-sm font-medium text-gray-900" > Address</ th >
136
+ < th className = "py-2 text-left text-sm font-medium text-gray-900" > Status</ th >
137
+ </ tr >
138
+ </ thead >
139
+ < tbody >
140
+ { displayedJobs . map ( ( job ) => (
141
+ < tr key = { job . verificationId } className = "border-b border-gray-200 hover:bg-gray-100" >
142
+ < td className = "py-2 text-sm text-gray-700" >
143
+ < div >
144
+ < div className = "text-[0.65rem] text-gray-500" >
145
+ { new Date ( job . submittedAt ) . toLocaleTimeString ( [ ] , { hour : "2-digit" , minute : "2-digit" } ) } (
146
+ { Intl . DateTimeFormat ( ) . resolvedOptions ( ) . timeZone } )
147
+ </ div >
148
+ < div > { new Date ( job . submittedAt ) . toISOString ( ) . split ( "T" ) [ 0 ] } </ div >
146
149
</ div >
147
- < div > { new Date ( job . submittedAt ) . toISOString ( ) . split ( "T" ) [ 0 ] } </ div >
148
- </ div >
149
- </ td >
150
- < td className = "py-2 px-4 text-sm" >
151
- < a
152
- href = { `/jobs/${ job . verificationId } ` }
153
- className = "font-mono text-cerulean-blue-600 hover:text-cerulean-blue-800 hover:bg-cerulean-blue-50 focus:outline-none text-left underline"
154
- title = { job . verificationId }
155
- >
156
- { truncateJobId ( job . verificationId ) }
157
- </ a >
158
- </ td >
159
- < td className = "py-2 px-4 text-sm text-gray-600 break-words" >
160
- { job . contract
161
- ? `${ getChainName ( chains , parseInt ( job . contract . chainId ) ) } (${ job . contract . chainId } )`
162
- : "-" }
163
- </ td >
164
- < td className = "py-2 px-4 text-sm font-mono text-gray-600" >
165
- { job . contract ?. address ? (
166
- < span data-tooltip-id = "address-tooltip" data-tooltip-content = { job . contract . address } >
167
- { truncateAddress ( job . contract . address ) }
150
+ </ td >
151
+ < td className = "py-2 px-4 text-sm" >
152
+ < a
153
+ href = { `/jobs/${ job . verificationId } ` }
154
+ className = "font-mono text-cerulean-blue-600 hover:text-cerulean-blue-800 hover:bg-cerulean-blue-50 focus:outline-none text-left underline"
155
+ title = { job . verificationId }
156
+ >
157
+ { truncateJobId ( job . verificationId ) }
158
+ </ a >
159
+ </ td >
160
+ < td className = "py-2 px-4 text-sm text-gray-600 break-words" >
161
+ { job . contract
162
+ ? `${ getChainName ( chains , parseInt ( job . contract . chainId ) ) } (${ job . contract . chainId } )`
163
+ : "-" }
164
+ </ td >
165
+ < td className = "py-2 px-4 text-sm font-mono text-gray-600" >
166
+ { job . contract ?. address ? (
167
+ < span data-tooltip-id = "address-tooltip" data-tooltip-content = { job . contract . address } >
168
+ { truncateAddress ( job . contract . address ) }
169
+ </ span >
170
+ ) : (
171
+ "-"
172
+ ) }
173
+ </ td >
174
+ < td className = "py-2 text-sm" >
175
+ < span className = { `px-2 py-1 rounded text-xs font-medium ${ getStatusColor ( job ) } ` } >
176
+ { getStatusText ( job ) }
168
177
</ span >
169
- ) : (
170
- "-"
171
- ) }
172
- </ td >
173
- < td className = "py-2 text-sm" >
174
- < span className = { `px-2 py-1 rounded text-xs font-medium ${ getStatusColor ( job ) } ` } >
175
- { getStatusText ( job ) }
176
- </ span >
177
- </ td >
178
- </ tr >
179
- ) ) }
180
- </ tbody >
178
+ </ td >
179
+ </ tr >
180
+ ) ) }
181
+ </ tbody >
181
182
</ table >
182
183
</ div >
183
184
0 commit comments