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
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
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}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user