Fixed issue with Trading tab's filename
This commit is contained in:
parent
40e7c2875c
commit
0f2d073fb1
|
@ -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,7 +133,7 @@ export default function AccountHistory() {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Button
|
||||
className={`flex-none float-right text-sm h-9`}
|
||||
onClick={exportHistoryToCSV}
|
||||
|
@ -143,6 +144,7 @@ export default function AccountHistory() {
|
|||
</div>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<div className="mb-1 mt-4 md:mt-0">
|
||||
<div className="flex justify-end">
|
||||
{historyViews.map(({ label, key }, index) => (
|
||||
|
|
Loading…
Reference in New Issue