diff --git a/frontend/__snapshots__/scenes-app-insights--funnel-top-to-bottom-breakdown--dark.png b/frontend/__snapshots__/scenes-app-insights--funnel-top-to-bottom-breakdown--dark.png index fb1fbd220178d..d99c83e6eb844 100644 Binary files a/frontend/__snapshots__/scenes-app-insights--funnel-top-to-bottom-breakdown--dark.png and b/frontend/__snapshots__/scenes-app-insights--funnel-top-to-bottom-breakdown--dark.png differ diff --git a/frontend/src/scenes/session-recordings/player/utils/playerUtils.ts b/frontend/src/scenes/session-recordings/player/utils/playerUtils.ts index 5ea42f08b6d17..90985d83489b3 100644 --- a/frontend/src/scenes/session-recordings/player/utils/playerUtils.ts +++ b/frontend/src/scenes/session-recordings/player/utils/playerUtils.ts @@ -1,6 +1,5 @@ import { router } from 'kea-router' import api from 'lib/api' -import { ExpandableConfig } from 'lib/lemon-ui/LemonTable' import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast' import { MouseEvent as ReactMouseEvent, TouchEvent as ReactTouchEvent } from 'react' import { urls } from 'scenes/urls' @@ -35,25 +34,6 @@ export const getXPos = (event: ReactInteractEvent | InteractEvent): number => { return 0 } -// Determines whether a given PlayerList row should be expanded or not. -// -// Checks if the row should be expanded depending on the expandable prop that was passed into the component, -// and if it's undeterminable, defaults to the component's local state. This logic is copied over from -// LemonTable and reappropriated for session recordings. -export function getRowExpandedState>( - record: T, - recordIndex: number, - expandable?: ExpandableConfig, - isRowExpandedLocal: boolean = false -): boolean { - return ( - Number(!!expandable && (!expandable.rowExpandable || expandable.rowExpandable(record, recordIndex))) > 0 && - (!expandable?.isRowExpanded || expandable?.isRowExpanded?.(record, recordIndex) === -1 - ? isRowExpandedLocal - : !!expandable?.isRowExpanded?.(record, recordIndex)) - ) -} - export async function addRecordingToPlaylist( playlistId: SessionRecordingPlaylistType['short_id'], sessionRecordingId: SessionRecordingType['id'],