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:
Anton Gunnarsson
2025-10-16 08:24:20 +00:00
parent b5817c5dcd
commit 611d81222c
11 changed files with 360 additions and 106 deletions

View File

@@ -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}
/>
)
}