Skip to content

Commit

Permalink
chore: remove unused files (#20035)
Browse files Browse the repository at this point in the history
remove unused files
  • Loading branch information
daibhin authored Jan 30, 2024
1 parent 7b66b48 commit 285b9d8
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 147 deletions.
72 changes: 0 additions & 72 deletions frontend/src/lib/components/Table/Table.tsx

This file was deleted.

26 changes: 0 additions & 26 deletions frontend/src/lib/components/Table/utils.tsx

This file was deleted.

15 changes: 0 additions & 15 deletions frontend/src/lib/hooks/useBreakpoint.ts

This file was deleted.

4 changes: 1 addition & 3 deletions frontend/src/lib/lemon-ui/LemonTable/LemonTable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,7 @@
line-height: 1.5;

div {
.posthog-3000 & {
white-space: nowrap;
}
white-space: nowrap;
}
}

Expand Down
20 changes: 0 additions & 20 deletions frontend/src/lib/utils/responsiveUtils.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions frontend/src/scenes/experiments/Experiments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { ExperimentsHog } from 'lib/components/hedgehogs'
import { MemberSelect } from 'lib/components/MemberSelect'
import { PageHeader } from 'lib/components/PageHeader'
import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'
import { normalizeColumnTitle } from 'lib/components/Table/utils'
import { dayjs } from 'lib/dayjs'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
import { More } from 'lib/lemon-ui/LemonButton/More'
Expand Down Expand Up @@ -59,7 +58,7 @@ export function Experiments(): JSX.Element {

const columns: LemonTableColumns<Experiment> = [
{
title: normalizeColumnTitle('Name'),
title: 'Name',
dataIndex: 'name',
className: 'ph-no-capture',
sticky: true,
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/scenes/feature-flags/FeatureFlags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { ObjectTags } from 'lib/components/ObjectTags/ObjectTags'
import { PageHeader } from 'lib/components/PageHeader'
import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'
import PropertyFiltersDisplay from 'lib/components/PropertyFilters/components/PropertyFiltersDisplay'
import { normalizeColumnTitle } from 'lib/components/Table/utils'
import { FEATURE_FLAGS } from 'lib/constants'
import { IconLock } from 'lib/lemon-ui/icons'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
Expand Down Expand Up @@ -71,7 +70,7 @@ export function OverViewTab({

const columns: LemonTableColumns<FeatureFlagType> = [
{
title: normalizeColumnTitle('Key'),
title: 'Key',
dataIndex: 'key',
className: 'ph-no-capture',
sticky: true,
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/scenes/persons/RelatedFeatureFlags.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { LemonInput, LemonSelect, LemonTable, LemonTag, Link } from '@posthog/lemon-ui'
import { useActions, useValues } from 'kea'
import { normalizeColumnTitle } from 'lib/components/Table/utils'
import { LemonMarkdown } from 'lib/lemon-ui/LemonMarkdown'
import { LemonTableColumns } from 'lib/lemon-ui/LemonTable'
import { capitalizeFirstLetter } from 'lib/utils'
Expand Down Expand Up @@ -42,7 +41,7 @@ export function RelatedFeatureFlags({ distinctId, groups }: Props): JSX.Element

const columns: LemonTableColumns<RelatedFeatureFlag> = [
{
title: normalizeColumnTitle('Key'),
title: 'Key',
dataIndex: 'key',
className: 'ph-no-capture',
sticky: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ import {
} from 'kea'
import { router } from 'kea-router'
import { delay } from 'kea-test-utils'
import { windowValues } from 'kea-window-values'
import { FEATURE_FLAGS } from 'lib/constants'
import { now } from 'lib/dayjs'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { clamp, downloadFile, fromParamsGivenUrl } from 'lib/utils'
import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
import { getBreakpoint } from 'lib/utils/responsiveUtils'
import { wrapConsole } from 'lib/utils/wrapConsole'
import posthog from 'posthog-js'
import { RefObject } from 'react'
Expand Down Expand Up @@ -1008,9 +1006,6 @@ export const sessionRecordingPlayerLogic = kea<sessionRecordingPlayerLogicType>(
}
},
})),
windowValues({
isSmallScreen: (window: Window) => window.innerWidth < getBreakpoint('md'),
}),

beforeUnmount(({ values, actions, cache, props }) => {
if (props.mode === SessionRecordingPlayerMode.Preview) {
Expand Down

0 comments on commit 285b9d8

Please sign in to comment.