fix(ui): xray popover

This commit is contained in:
Shekar Siri 2024-09-05 20:06:42 +05:30
parent 6ca9bda5d8
commit 5a48bdfa83

View file

@ -37,7 +37,6 @@ const featLabels = {
}
function FeatureSelection(props: Props) {
const [isOpen, setIsOpen] = React.useState(false);
const features = [NETWORK, ERRORS, EVENTS, PERFORMANCE, FRUSTRATIONS];
const toggleFeatureInList = (feat: string) => {
@ -58,7 +57,7 @@ function FeatureSelection(props: Props) {
return (
<React.Fragment>
<Popover
open={isOpen}
trigger="click"
content={
<div>
<div
@ -82,7 +81,7 @@ function FeatureSelection(props: Props) {
</div>
}
>
<div onClick={() => setIsOpen(!isOpen)} className={'font-semibold flex items-center gap-2 text-main cursor-pointer'}>
<div className={'font-semibold flex items-center gap-2 text-main cursor-pointer'}>
<Icon size={16} name={'funnel'} color={'main'} />
<div>X-Ray Events</div>
</div>