File tree 3 files changed +10
-1
lines changed
_common/contact-option/CallOption
pages/contact-information-page
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export const CallOption = ({
42
42
phoneNumber,
43
43
regularOpeningHours,
44
44
specialOpeningHours,
45
+ hideMoreLink,
45
46
text,
46
47
audience,
47
48
} : Props ) => {
@@ -102,7 +103,9 @@ export const CallOption = ({
102
103
className = { style . moreLink }
103
104
href = { getContactUrl ( ) }
104
105
>
105
- < BodyShort as = "span" > { sharedTranslations . seeMoreOptions } </ BodyShort >
106
+ { ! hideMoreLink && (
107
+ < BodyShort as = "span" > { sharedTranslations . seeMoreOptions } </ BodyShort >
108
+ ) }
106
109
</ LenkeBase >
107
110
</ div >
108
111
</ div >
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ export const ContactInformationPage = (props: ContactInformationProps) => {
11
11
const { data } = props ;
12
12
const { contactType } = data ;
13
13
14
+ console . log ( props . data . contactType . telephone ) ;
15
+
14
16
const hasContactType = ! ! ( contactType . telephone || contactType . write || contactType . chat ) ;
15
17
16
18
const hasSpecialHours = ! ! contactType ?. telephone ?. specialOpeningHours ;
@@ -43,6 +45,7 @@ export const ContactInformationPage = (props: ContactInformationProps) => {
43
45
title = { telephone . title }
44
46
alertText = { telephone . alertText }
45
47
text = { telephone . text }
48
+ hideMoreLink = { telephone . hideMoreLink }
46
49
phoneNumber = { telephone . phoneNumber }
47
50
regularOpeningHours = { telephone . regularOpeningHours }
48
51
specialOpeningHours = { telephone . specialOpeningHours }
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ export type DefaultContactData = {
63
63
ingress ?: ProcessedHtmlProps ;
64
64
title ?: string ;
65
65
url ?: string ;
66
+ hideMoreLink ?: boolean ;
66
67
icon ?: 'facebook' | 'linkedin' ;
67
68
sharedContactInformation ?: {
68
69
_path : string ;
@@ -81,6 +82,7 @@ export type TelephoneData = {
81
82
title ?: string ;
82
83
text ?: string ;
83
84
alertText ?: string ;
85
+ hideMoreLink ?: boolean ;
84
86
regularOpeningHours ?: RegularOpeningHours ;
85
87
specialOpeningHours ?: SpecialOpeningHours ;
86
88
audience ?: AudienceOptions ;
@@ -169,6 +171,7 @@ export const ContactOptionPart = ({ config }: PartComponentProps<PartType.Contac
169
171
{ ...sharedContactInformation . data . contactType . telephone }
170
172
ingress = { ingress }
171
173
audience = { audience }
174
+ hideMoreLink = { channelData . hideMoreLink }
172
175
/>
173
176
) ;
174
177
}
You can’t perform that action at this time.
0 commit comments