Skip to content

Commit 305199f

Browse files
Merge pull request #2194 from navikt/disable-extra-links-in-call-contact
Disable ekstra lenketekst om flere telefonnummer
2 parents 1c21ae4 + 75a7c9c commit 305199f

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/components/_common/contact-option/CallOption/CallOption.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export const CallOption = ({
4242
phoneNumber,
4343
regularOpeningHours,
4444
specialOpeningHours,
45+
hideMoreLink,
4546
text,
4647
audience,
4748
}: Props) => {
@@ -102,7 +103,9 @@ export const CallOption = ({
102103
className={style.moreLink}
103104
href={getContactUrl()}
104105
>
105-
<BodyShort as="span">{sharedTranslations.seeMoreOptions}</BodyShort>
106+
{!hideMoreLink && (
107+
<BodyShort as="span">{sharedTranslations.seeMoreOptions}</BodyShort>
108+
)}
106109
</LenkeBase>
107110
</div>
108111
</div>

src/components/pages/contact-information-page/ContactInformationPage.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const ContactInformationPage = (props: ContactInformationProps) => {
4343
title={telephone.title}
4444
alertText={telephone.alertText}
4545
text={telephone.text}
46+
hideMoreLink={telephone.hideMoreLink}
4647
phoneNumber={telephone.phoneNumber}
4748
regularOpeningHours={telephone.regularOpeningHours}
4849
specialOpeningHours={telephone.specialOpeningHours}

src/components/parts/contact-option/ContactOptionPart.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export type DefaultContactData = {
6363
ingress?: ProcessedHtmlProps;
6464
title?: string;
6565
url?: string;
66+
hideMoreLink?: boolean;
6667
icon?: 'facebook' | 'linkedin';
6768
sharedContactInformation?: {
6869
_path: string;
@@ -81,6 +82,7 @@ export type TelephoneData = {
8182
title?: string;
8283
text?: string;
8384
alertText?: string;
85+
hideMoreLink?: boolean;
8486
regularOpeningHours?: RegularOpeningHours;
8587
specialOpeningHours?: SpecialOpeningHours;
8688
audience?: AudienceOptions;

0 commit comments

Comments
 (0)