Skip to content

Commit

Permalink
Setter komponent 'alternativ-målgruppe' og 'skjemaoversikt-filter' (#…
Browse files Browse the repository at this point in the history
…1984)

Setter komponent 'alternativ-målgruppe' og 'skjemaoversikt-filter'
  • Loading branch information
PerOlavM authored Aug 21, 2024
1 parent c043e3a commit 85690f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ export const AlternativeAudience = () => {
'for'
).slice(1)}`;

return `${forString} ${providerTypesString || currentAudienceLabel}${addPeriod ? '.' : ''} `;
return `${forString} ${providerTypesString || currentAudienceLabel}${
addPeriod ? '.' : ''
} `;
};

if (!alternativeAudience) {
Expand All @@ -126,7 +128,7 @@ export const AlternativeAudience = () => {
{getRelatedString('relatedAudience').replace('{name}', productName)}{' '}
{audienceLinks.map((link, index) => (
<Fragment key={index}>
<LenkeInline href={link.url} analyticsLabel={'Aktuell målgruppe'}>
<LenkeInline href={link.url} analyticsComponent="alternativ-målgruppe">
{link.title}
</LenkeInline>
{getConjunction({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { translator } from 'translations';
import { usePageContentProps } from 'store/pageContext';
import { useOverviewFilters } from 'store/hooks/useOverviewFilters';
import { windowScrollTo } from 'utils/scroll-to';
import { AnalyticsEvents, logAmplitudeEvent } from 'utils/amplitude';
import {
OVERVIEW_FILTERS_TEXT_INPUT_EVENT,
OverviewFiltersTextInputEventDetail,
} from 'store/slices/overviewFilters';

import style from './OverviewTextFilter.module.scss';

type Props = {
Expand All @@ -35,6 +35,10 @@ export const OverviewTextFilter = ({ hideLabel }: Props) => {
}
)
);
logAmplitudeEvent(AnalyticsEvents.FILTER, {
komponent: 'skjemaoversikt-filter',
filtertekst: value,
});
}, 500),
[setTextFilter]
);
Expand Down

0 comments on commit 85690f5

Please sign in to comment.