Fixed issue with Trading tab's filename

This commit is contained in:
Yandre 2021-12-02 19:39:56 -05:00
parent 40e7c2875c
commit 0f2d073fb1
1 changed files with 13 additions and 11 deletions

View File

@ -104,14 +104,15 @@ export default function AccountHistory() {
return
}
const title = historyViews.filter((v) => v.key == view)[0].label
const tab = historyViews.filter((v) => v.key == view)[0].label
const title = `Mango Markets - ${tab} - ' + ${new Date().toString()}`
exportDataToCSV(dataToExport, title, headers, t)
}
return (
<>
<div className="pb-4">
<div className=" pb-4">
<div>
<div className="flex justify-between mb-4 text-th-fgd-1 text-lg">
<div className={`sm:w-3/4`}>
@ -132,16 +133,17 @@ export default function AccountHistory() {
</div>
</div>
</div>
<Button
className={`flex-none float-right text-sm h-9`}
onClick={exportHistoryToCSV}
>
<div className={`flex items-center`}>
{t('export-data')}
<SaveIcon className={`h-4 w-4 ml-1.5`} />
</div>
</Button>
</div>
<Button
className={`flex-none float-right text-sm h-9`}
onClick={exportHistoryToCSV}
>
<div className={`flex items-center`}>
{t('export-data')}
<SaveIcon className={`h-4 w-4 ml-1.5`} />
</div>
</Button>
</div>
<div className="mb-1 mt-4 md:mt-0">
<div className="flex justify-end">