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
36 lines
684 B
TypeScript
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}
|
|
/>
|
|
)
|
|
}
|