@@ -20,7 +20,7 @@ import { Menu } from "../../../common/Menu/Menu";
2020import { BemWithSpecifiContext } from "../../../utils/bem" ;
2121import { SidePanelsContext } from "../SidePanelsContext" ;
2222import "./ViewControls.scss" ;
23- import { FF_DEV_3873 , FF_LSDV_4992 , isFF } from "../../../utils/feature-flags" ;
23+ import { FF_DEV_3873 , isFF } from "../../../utils/feature-flags" ;
2424import { observer } from "mobx-react" ;
2525
2626const { Block, Elem } = BemWithSpecifiContext ( ) ;
@@ -56,14 +56,14 @@ export const ViewControls: FC<ViewControlsProps> = observer(
5656 case "label" :
5757 return {
5858 label : "Group by Label" ,
59- selectedLabel : isFF ( FF_DEV_3873 ) ? ( isFF ( FF_LSDV_4992 ) ? "By Label" : "Label" ) : "Grouped by Label" ,
59+ selectedLabel : isFF ( FF_DEV_3873 ) ? "By Label" : "Grouped by Label" ,
6060 icon : < IconTagAlt /> ,
6161 tooltip : "Grouped by Label" ,
6262 } ;
6363 case "type" :
6464 return {
6565 label : "Group by Tool" ,
66- selectedLabel : isFF ( FF_DEV_3873 ) ? ( isFF ( FF_LSDV_4992 ) ? "By Tool" : "Tool" ) : "Grouped by Tool" ,
66+ selectedLabel : isFF ( FF_DEV_3873 ) ? "By Tool" : "Grouped by Tool" ,
6767 icon : < IconCursor /> ,
6868 tooltip : "Grouped by Tool" ,
6969 } ;
@@ -95,7 +95,7 @@ export const ViewControls: FC<ViewControlsProps> = observer(
9595 ) ;
9696
9797 return (
98- < Block name = "view-controls" mod = { { collapsed : context . locked , FF_LSDV_4992 : isFF ( FF_LSDV_4992 ) } } >
98+ < Block name = "view-controls" mod = { { collapsed : context . locked } } >
9999 < Grouping
100100 value = { grouping }
101101 options = { [ "manual" , "type" , "label" ] }
@@ -115,7 +115,7 @@ export const ViewControls: FC<ViewControlsProps> = observer(
115115 />
116116 </ Elem >
117117 ) }
118- { isFF ( FF_LSDV_4992 ) ? < ToggleRegionsVisibilityButton regions = { regions } /> : null }
118+ < ToggleRegionsVisibilityButton regions = { regions } />
119119 </ Block >
120120 ) ;
121121 } ,
@@ -183,16 +183,7 @@ const Grouping = <T extends string>({
183183
184184 // mods are already set in the button from type, so use it only in new UI
185185 const extraStyles = isFF ( FF_DEV_3873 ) ? { mod : { newUI : true } } : undefined ;
186- const style = isFF ( FF_LSDV_4992 )
187- ? { }
188- : {
189- padding : "0" ,
190- whiteSpace : "nowrap" ,
191- } ;
192-
193- if ( isFF ( FF_DEV_3873 ) ) {
194- style . padding = "0 12px 0 2px" ;
195- }
186+ const style = isFF ( FF_DEV_3873 ) ? { padding : "0 12px 0 2px" } : { } ;
196187
197188 return (
198189 < Dropdown . Trigger content = { dropdownContent } style = { { width : 200 } } >
@@ -209,7 +200,7 @@ const Grouping = <T extends string>({
209200 < DirectionIndicator direction = { direction } name = { value } value = { value } wrap = { false } />
210201 )
211202 }
212- tooltip = { ( isFF ( FF_LSDV_4992 ) && readableValue . tooltip ) || undefined }
203+ tooltip = { readableValue . tooltip || undefined }
213204 tooltipTheme = "dark"
214205 >
215206 { readableValue . selectedLabel }
0 commit comments