Skip to content

Commit

Permalink
Remove old amplitude usage
Browse files Browse the repository at this point in the history
  • Loading branch information
andersrognstad committed Jan 2, 2024
1 parent 70c64a5 commit ff93920
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 275 deletions.
184 changes: 0 additions & 184 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"@types/react-select": "3.1.2",
"@types/redis": "2.8.32",
"@types/styled-components": "5.1.26",
"amplitude-js": "8.21.3",
"autoprefixer": "10.4.13",
"axios": "1.6.3",
"classnames": "2.3.2",
Expand Down Expand Up @@ -117,7 +116,6 @@
"@tanstack/eslint-plugin-query": "4.29.9",
"@testing-library/react": "14.0.0",
"@testing-library/react-hooks": "7.0.2",
"@types/amplitude-js": "8.16.2",
"@types/chai": "4.3.4",
"@types/dotenv-webpack": "7.0.3",
"@types/jsdom": "21.1.1",
Expand Down
49 changes: 0 additions & 49 deletions src/amplitude/amplitude.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/components/HendelseTypeFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,9 @@ import { useFilters } from '@/context/filters/FilterContext';
import { ActionType } from '@/context/filters/filterContextActions';
import { HendelseTypeFilters } from '@/context/filters/filterContextState';
import { useTabType } from '@/context/tab/TabTypeContext';
import { trackOnClick } from '@/amplitude/amplitude';
import { useFeatureToggles } from '@/data/unleash/unleashQueryHooks';
import { Toggles } from '@/data/unleash/types/unleash_types';

const texts = {
trackingLabel: 'HendelseFilter',
};

export const HendelseTekster = {
UFORDELTE_BRUKERE: 'Ufordelte brukere', // Ikke tildelt veileder
ARBEIDSGIVER_BISTAND: 'Arbeidsgiver ber om bistand',
Expand Down Expand Up @@ -190,7 +185,6 @@ export const HendelseTypeFilter = ({ personRegister }: Props): ReactElement => {
element.tekst,
checked
);
trackOnClick(`${texts.trackingLabel} '${element.tekst}'`);
dispatchFilterAction({
type: ActionType.SetSelectedHendelseType,
selectedHendelseType: nyttFilter,
Expand Down
Loading

0 comments on commit ff93920

Please sign in to comment.