mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
renamed variable
This commit is contained in:
@@ -9,7 +9,7 @@ import { currentDateAsString } from '@/shared/currentDateAsString'
|
|||||||
export const CrossSearchExportMenuItem = ({ handleClose }: { handleClose: () => void }) => {
|
export const CrossSearchExportMenuItem = ({ handleClose }: { handleClose: () => void }) => {
|
||||||
const [loading, setLoading] = useState(false)
|
const [loading, setLoading] = useState(false)
|
||||||
const { sqlColumnFilters, sqlOrderBy } = usePageContext()
|
const { sqlColumnFilters, sqlOrderBy } = usePageContext()
|
||||||
const { notify, setMessage } = useNotify()
|
const { notify, setMessage: setNotificationMessage } = useNotify()
|
||||||
|
|
||||||
const token = useUser().token
|
const token = useUser().token
|
||||||
const fetchOptions = token ? { headers: { Authorization: `Bearer ${token}` } } : {}
|
const fetchOptions = token ? { headers: { Authorization: `Bearer ${token}` } } : {}
|
||||||
@@ -35,7 +35,7 @@ export const CrossSearchExportMenuItem = ({ handleClose }: { handleClose: () =>
|
|||||||
const showDownloadProgress = () => {
|
const showDownloadProgress = () => {
|
||||||
if (!closed) {
|
if (!closed) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
setMessage(`Downloading CSV file, ${Math.round((bytes / 1000000) * 10) / 10} MB`)
|
setNotificationMessage(`Downloading CSV file, ${Math.round((bytes / 1000000) * 10) / 10} MB`)
|
||||||
showDownloadProgress()
|
showDownloadProgress()
|
||||||
}, 500)
|
}, 500)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user