Skip to content

Commit dc2da46

Browse files
committed
Endrer Checkbox => CheckBox
1 parent d970740 commit dc2da46

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-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

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ export const ContactInformationPage = (props: ContactInformationProps) => {
1111
const { data } = props;
1212
const { contactType } = data;
1313

14+
console.log(props.data.contactType.telephone);
15+
1416
const hasContactType = !!(contactType.telephone || contactType.write || contactType.chat);
1517

1618
const hasSpecialHours = !!contactType?.telephone?.specialOpeningHours;
@@ -43,6 +45,7 @@ export const ContactInformationPage = (props: ContactInformationProps) => {
4345
title={telephone.title}
4446
alertText={telephone.alertText}
4547
text={telephone.text}
48+
hideMoreLink={telephone.hideMoreLink}
4649
phoneNumber={telephone.phoneNumber}
4750
regularOpeningHours={telephone.regularOpeningHours}
4851
specialOpeningHours={telephone.specialOpeningHours}

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

+3
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;
@@ -169,6 +171,7 @@ export const ContactOptionPart = ({ config }: PartComponentProps<PartType.Contac
169171
{...sharedContactInformation.data.contactType.telephone}
170172
ingress={ingress}
171173
audience={audience}
174+
hideMoreLink={channelData.hideMoreLink}
172175
/>
173176
);
174177
}

0 commit comments

Comments
 (0)