File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
apps/insights/src/components/Publisher Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { StatCard } from "@pythnetwork/component-library/StatCard";
1313import { lookup } from "@pythnetwork/known-publishers" ;
1414import { notFound } from "next/navigation" ;
1515import type { ReactNode } from "react" ;
16- import { Suspense , useCallback } from "react" ;
16+ import { Suspense } from "react" ;
1717
1818import {
1919 getPublishers ,
@@ -109,16 +109,13 @@ const PublisherHeader = ({
109109
110110 const downloadReportForPublisher = useDownloadReportForPublisher ( ) ;
111111
112- const handleDownloadReport = useCallback (
113- ( interval : Interval ) => {
112+ const handleDownloadReport = ( interval : Interval ) => {
114113 return downloadReportForPublisher ( {
115114 publisher : publisherKey ,
116115 cluster : ClusterToName [ cluster ] ,
117116 interval,
118117 } ) ;
119- } ,
120- [ publisherKey , cluster , downloadReportForPublisher ] ,
121- ) ;
118+ } ;
122119
123120 return (
124121 < section className = { styles . header } >
You can’t perform that action at this time.
0 commit comments