mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 09:30:31 +03:00
Improved styling of the export visits button
This commit is contained in:
parent
482489599e
commit
508623f89f
1 changed files with 18 additions and 11 deletions
|
@ -259,18 +259,25 @@ const VisitsStats: FC<VisitsStatsProps> = (
|
|||
</div>
|
||||
{visits.length > 0 && (
|
||||
<div className="col-lg-5 col-xl-6 mt-4 mt-lg-0">
|
||||
<div className="d-flex">
|
||||
<Button
|
||||
outline
|
||||
disabled={highlightedVisits.length === 0}
|
||||
className="btn-md-block"
|
||||
className="btn-md-block mr-2"
|
||||
onClick={() => setSelectedVisits([])}
|
||||
>
|
||||
Clear selection {highlightedVisits.length > 0 && <>({highlightedVisits.length})</>}
|
||||
</Button>
|
||||
<Button outline color="primary" onClick={() => exportCsv(normalizedVisits)}>
|
||||
<Button
|
||||
outline
|
||||
color="primary"
|
||||
className="btn-md-block"
|
||||
onClick={() => exportCsv(normalizedVisits)}
|
||||
>
|
||||
Export <FontAwesomeIcon icon={faFileExport} />
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</section>
|
||||
|
|
Loading…
Reference in a new issue