Switched visits buttons order

This commit is contained in:
Alejandro Celaya 2022-05-25 18:26:34 +02:00
parent 3f34a1fb87
commit 8d69945e8e

View file

@ -300,19 +300,19 @@ const VisitsStats: FC<VisitsStatsProps> = ({
{visits.length > 0 && ( {visits.length > 0 && (
<div className="col-lg-5 col-xl-6 mt-3 mt-lg-0"> <div className="col-lg-5 col-xl-6 mt-3 mt-lg-0">
<div className="d-flex"> <div className="d-flex">
<Button
outline
disabled={highlightedVisits.length === 0}
className="btn-md-block me-2"
onClick={() => setSelectedVisits([])}
>
Clear selection {highlightedVisits.length > 0 && <>({prettify(highlightedVisits.length)})</>}
</Button>
<ExportBtn <ExportBtn
className="btn-md-block" className="btn-md-block"
amount={normalizedVisits.length} amount={normalizedVisits.length}
onClick={() => exportCsv(normalizedVisits)} onClick={() => exportCsv(normalizedVisits)}
/> />
<Button
outline
disabled={highlightedVisits.length === 0}
className="btn-md-block ms-2"
onClick={() => setSelectedVisits([])}
>
Clear selection {highlightedVisits.length > 0 && <>({prettify(highlightedVisits.length)})</>}
</Button>
</div> </div>
</div> </div>
)} )}