Skip to content

Commit

Permalink
remove GlobalFiltersTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr committed Nov 22, 2023
1 parent f048e19 commit f32365b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export function GlobalAndOrFilters({ insightProps }: EditorFilterProps): JSX.Ele
setQuery={updateQuerySource}
eventNames={getAllEventNames(querySource as TrendsQuery | StickinessQuery, allActions)}
taxonomicGroupTypes={taxonomicGroupTypes}
noTitle
/>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import './PropertyGroupFilters.scss'
import { propertyGroupFilterLogic } from './propertyGroupFilterLogic'
import { PropertyFilters } from 'lib/components/PropertyFilters/PropertyFilters'
import { isPropertyGroupFilterLike } from 'lib/components/PropertyFilters/utils'
import { GlobalFiltersTitle } from 'scenes/insights/common'
import { IconCopy, IconDelete, IconPlusMini } from 'lib/lemon-ui/icons'
import { TestAccountFilter } from '../filters/TestAccountFilter'
import { LemonButton, LemonDivider } from '@posthog/lemon-ui'
Expand All @@ -21,7 +20,6 @@ type PropertyGroupFiltersProps = {
pageKey: string
eventNames?: string[]
taxonomicGroupTypes?: TaxonomicFilterGroupType[]
noTitle?: boolean
}

export function PropertyGroupFilters({
Expand All @@ -31,7 +29,6 @@ export function PropertyGroupFilters({
pageKey,
eventNames = [],
taxonomicGroupTypes,
noTitle,
}: PropertyGroupFiltersProps): JSX.Element {
const logicProps = { query, setQuery, pageKey }
const { propertyGroupFilter } = useValues(propertyGroupFilterLogic(logicProps))
Expand All @@ -44,7 +41,7 @@ export function PropertyGroupFilters({
setPropertyFilters,
} = useActions(propertyGroupFilterLogic(logicProps))

const showHeader = !noTitle || (propertyGroupFilter.type && propertyGroupFilter.values.length > 1)
const showHeader = propertyGroupFilter.type && propertyGroupFilter.values.length > 1

return (
<div className="space-y-2 PropertyGroupFilters">
Expand All @@ -54,7 +51,6 @@ export function PropertyGroupFilters({
{showHeader ? (
<>
<div className="flex items-center justify-between">
{!noTitle ? <GlobalFiltersTitle orFiltering={true} /> : null}
{propertyGroupFilter.type && propertyGroupFilter.values.length > 1 && (
<AndOrFilterSelect
value={propertyGroupFilter.type}
Expand Down
31 changes: 0 additions & 31 deletions frontend/src/scenes/insights/common.tsx

This file was deleted.

0 comments on commit f32365b

Please sign in to comment.