* Fix: #9210 * Fix: #9215 Added Password Validation to App Signup * FIX #9216 Fixed the Update Button Allignment * Fix #9238: Don't render descripiton in email template if undefined * Remove Prev Changes * Remove unwanted space * Revert yarn.lock --------- Co-authored-by: Peer Richelsen <peeroke@gmail.com>
25 lines
680 B
TypeScript
25 lines
680 B
TypeScript
import getLabelValueMapFromResponses from "@calcom/lib/getLabelValueMapFromResponses";
|
|
import type { CalendarEvent } from "@calcom/types/Calendar";
|
|
|
|
import { Info } from "./Info";
|
|
|
|
export function UserFieldsResponses(props: { calEvent: CalendarEvent }) {
|
|
const labelValueMap = getLabelValueMapFromResponses(props.calEvent);
|
|
|
|
if (!labelValueMap) return null;
|
|
return (
|
|
<>
|
|
{Object.keys(labelValueMap).map((key) =>
|
|
labelValueMap[key] !== "" ? (
|
|
<Info
|
|
key={key}
|
|
label={key}
|
|
description={`${labelValueMap[key] ? labelValueMap[key] : ""}`}
|
|
withSpacer
|
|
/>
|
|
) : null
|
|
)}
|
|
</>
|
|
);
|
|
}
|