mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-21 20:44:18 +00:00
✨ Add stats to the visualization selector
This commit is contained in:
parent
d946e46431
commit
5e24c8f2e6
1 changed files with 11 additions and 1 deletions
|
@ -1,6 +1,15 @@
|
|||
import React from "react"
|
||||
import ButtonIconOnly from "../base/ButtonIconOnly"
|
||||
import { faAt, faChartBar, faClock, faCloud, faHashtag, faMap, faMapPin } from "@fortawesome/free-solid-svg-icons"
|
||||
import {
|
||||
faAt,
|
||||
faChartBar,
|
||||
faClock,
|
||||
faCloud,
|
||||
faHashtag,
|
||||
faMap,
|
||||
faMapPin,
|
||||
faStar,
|
||||
} from "@fortawesome/free-solid-svg-icons"
|
||||
|
||||
|
||||
export default function PickerVisualization({ currentTab, setTab, ...props }) {
|
||||
|
@ -9,6 +18,7 @@ export default function PickerVisualization({ currentTab, setTab, ...props }) {
|
|||
<ButtonIconOnly onClick={() => setTab("wordcloud")} disabled={currentTab === "wordcloud"} color={"Grey"} icon={faCloud}/>
|
||||
<ButtonIconOnly onClick={() => setTab("histogram")} disabled={currentTab === "histogram"} color={"Grey"} icon={faChartBar}/>
|
||||
<ButtonIconOnly onClick={() => setTab("map")} disabled={currentTab === "map"} color={"Grey"} icon={faMap}/>
|
||||
<ButtonIconOnly onClick={() => setTab("stats")} disabled={currentTab === "stats"} color={"Grey"} icon={faStar}/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue