File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
apps/insights/src/components/Publisher Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { StatCard } from "@pythnetwork/component-library/StatCard";
13
13
import { lookup } from "@pythnetwork/known-publishers" ;
14
14
import { notFound } from "next/navigation" ;
15
15
import type { ReactNode } from "react" ;
16
- import { Suspense , useCallback } from "react" ;
16
+ import { Suspense } from "react" ;
17
17
18
18
import {
19
19
getPublishers ,
@@ -109,16 +109,13 @@ const PublisherHeader = ({
109
109
110
110
const downloadReportForPublisher = useDownloadReportForPublisher ( ) ;
111
111
112
- const handleDownloadReport = useCallback (
113
- ( interval : Interval ) => {
114
- return downloadReportForPublisher ( {
115
- publisher : publisherKey ,
116
- cluster : ClusterToName [ cluster ] ,
117
- interval,
118
- } ) ;
119
- } ,
120
- [ publisherKey , cluster , downloadReportForPublisher ] ,
121
- ) ;
112
+ const handleDownloadReport = ( interval : Interval ) => {
113
+ return downloadReportForPublisher ( {
114
+ publisher : publisherKey ,
115
+ cluster : ClusterToName [ cluster ] ,
116
+ interval,
117
+ } ) ;
118
+ } ;
122
119
123
120
return (
124
121
< section className = { styles . header } >
You can’t perform that action at this time.
0 commit comments