Files
web/packages/booking-flow/lib/components/EnterDetails/Details/RoomOne/Signup/MembershipNumberInput.tsx
Anton Gunnarsson 611d81222c Merged in feat/sw-3514-join-card-membership-id (pull request #2967)
feat(SW-3514): Add variant of join friends card with membership id input

* Move membershipId input in enter details to join card

Add booking flow feature flag to move membershipId into join card and hide login button.
Currently only applies to first room.

* Add sas join card to multiroom


Approved-by: Hrishikesh Vaipurkar
2025-10-16 08:24:20 +00:00

36 lines
684 B
TypeScript

import { useIntl } from "react-intl"
import BookingFlowInput from "../../../../BookingFlowInput"
import type { RegisterOptions } from "react-hook-form"
export function MembershipNumberInput({
registerOptions,
label,
className,
disabled,
}: {
registerOptions?: RegisterOptions
label?: string
className?: string
disabled?: boolean
}) {
const intl = useIntl()
return (
<BookingFlowInput
label={
label ||
intl.formatMessage({
defaultMessage: "Membership ID",
})
}
name="membershipNo"
type="tel"
registerOptions={registerOptions}
className={className}
disabled={disabled}
/>
)
}