renamed variable

This commit is contained in:
juhanikat
2025-07-14 12:31:48 +03:00
parent 1c6cc0cc8a
commit a327a76a8a
@@ -9,7 +9,7 @@ import { currentDateAsString } from '@/shared/currentDateAsString'
export const CrossSearchExportMenuItem = ({ handleClose }: { handleClose: () => void }) => {
const [loading, setLoading] = useState(false)
const { sqlColumnFilters, sqlOrderBy } = usePageContext()
const { notify, setMessage } = useNotify()
const { notify, setMessage: setNotificationMessage } = useNotify()
const token = useUser().token
const fetchOptions = token ? { headers: { Authorization: `Bearer ${token}` } } : {}
@@ -35,7 +35,7 @@ export const CrossSearchExportMenuItem = ({ handleClose }: { handleClose: () =>
const showDownloadProgress = () => {
if (!closed) {
setTimeout(() => {
setMessage(`Downloading CSV file, ${Math.round((bytes / 1000000) * 10) / 10} MB`)
setNotificationMessage(`Downloading CSV file, ${Math.round((bytes / 1000000) * 10) / 10} MB`)
showDownloadProgress()
}, 500)
}