@@ -16,16 +16,21 @@ import { ConditionalWrap } from '@devtron-labs/devtron-fe-common-lib'
1616import Tippy from '@tippyjs/react'
1717
1818export const ValueContainer = ( props ) : JSX . Element => {
19- const { appListOptions, selectedAppList, selectedFilterTab, selectedGroupFilter, filterParentType } : AppGroupAppFilterContextType =
20- useAppGroupAppFilterContext ( )
19+ const {
20+ appListOptions,
21+ selectedAppList,
22+ selectedFilterTab,
23+ selectedGroupFilter,
24+ filterParentType,
25+ } : AppGroupAppFilterContextType = useAppGroupAppFilterContext ( )
2126 let selectorText ,
2227 selectedAppsLength = props . getValue ( ) . length
2328 if ( selectedFilterTab === AppFilterTabs . GROUP_FILTER && selectedGroupFilter [ 0 ] ) {
2429 selectorText = selectedGroupFilter [ 0 ] ?. label
2530 } else {
2631 selectorText = `${ selectedAppList . length > 0 ? selectedAppList . length : appListOptions . length } /${
2732 appListOptions . length
28- } ${ filterParentType === FilterParentType . env ? 'Applications' : 'Environments' } `
33+ } ${ filterParentType === FilterParentType . env ? 'Applications' : 'Environments' } `
2934 }
3035 return (
3136 < components . ValueContainer { ...props } >
@@ -144,7 +149,7 @@ export const MenuList = (props: any): JSX.Element => {
144149 openCreateGroup,
145150 selectedGroupFilter,
146151 setSelectedGroupFilter,
147- filterParentType
152+ filterParentType,
148153 } : AppGroupAppFilterContextType = useAppGroupAppFilterContext ( )
149154 const clearSelection = ( ) : void => {
150155 setSelectedAppList ( [ ] )
@@ -153,7 +158,7 @@ export const MenuList = (props: any): JSX.Element => {
153158 const onTabChange = ( e ) : void => {
154159 setSelectedFilterTab ( e . currentTarget . dataset . selectedTab )
155160 }
156- const selectedType = filterParentType === FilterParentType . env ? 'applications' : 'environments'
161+ const selectedType = filterParentType === FilterParentType . env ? 'applications' : 'environments'
157162 return (
158163 < components . MenuList { ...props } >
159164 < div className = "dc__position-sticky dc__top-0 bcn-0" >
@@ -208,8 +213,8 @@ export const MenuList = (props: any): JSX.Element => {
208213 < InfoIcon className = "icon-dim-20 mr-4 mw-18 cursor fcn-6 mb-4" />
209214 < div className = "fs-13 fw-6 cn-9 mb-4" > No saved filters</ div >
210215 < div className = "fs-12 fw-4 cn-7 dc__align-center " >
211- To save a filter, select some { selectedType } from All { selectedType } and click on ‘Save selection as
212- filter’
216+ To save a filter, select some { selectedType } from All { selectedType } and click on ‘Save
217+ selection as filter’
213218 </ div >
214219 </ div >
215220 ) }
0 commit comments