fix: add extra security layers for sending messages to attendees (#10636)
Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
1 parent
633d85e81b
commit
c7dfa7bc89
33 files changed
+690
-101
No files matched your search
@@ -3,7 +3,7 @@ import { components as reactSelectComponents } from "react-select";
|
||||
|
||||
import { classNames } from "@calcom/lib";
|
||||
|
||||
import { UpgradeTeamsBadge } from "../../badge";
|
||||
import { UpgradeTeamsBadge, KYCVerificationBadge } from "../../badge";
|
||||
import { Check } from "../../icon";
|
||||
|
||||
export const InputComponent = <
|
||||
@@ -30,6 +30,8 @@ type ExtendedOption = {
|
||||
value: string | number;
|
||||
label: string;
|
||||
needsUpgrade?: boolean;
|
||||
needsVerification?: boolean;
|
||||
verificationAction?: () => void;
|
||||
};
|
||||
|
||||
export const OptionComponent = <
|
||||
@@ -46,7 +48,15 @@ export const OptionComponent = <
|
||||
<span className="mr-auto" data-testid={`select-option-${(props as unknown as ExtendedOption).value}`}>
|
||||
{props.label || <> </>}
|
||||
</span>
|
||||
{(props.data as unknown as ExtendedOption).needsUpgrade && <UpgradeTeamsBadge />}
|
||||
{(props.data as unknown as ExtendedOption).needsUpgrade ? (
|
||||
<UpgradeTeamsBadge />
|
||||
) : (props.data as unknown as ExtendedOption).needsVerification ? (
|
||||
<KYCVerificationBadge
|
||||
verifyTeamAction={(props.data as unknown as ExtendedOption).verificationAction}
|
||||
/>
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
{props.isSelected && <Check className="ml-2 h-4 w-4" />}
|
||||
</div>
|
||||
</reactSelectComponents.Option>
|
||||
|
||||
Reference in new issue
Block a user