Merged in feat/SW-1308-booking-codes-track-b (pull request #1607)

Feat/SW-1308 booking codes track b

* feat: SW-1308 Booking codes track b

* feat: SW-1308 Booking codes Track B implementation

* feat: SW-1308 Optimized after rebase


Approved-by: Arvid Norlin
This commit is contained in:
Hrishikesh Vaipurkar
2025-03-24 11:23:11 +00:00
parent 5643bcc62a
commit b0674d07f5
66 changed files with 1612 additions and 285 deletions

View File

@@ -25,6 +25,7 @@ export default function Input({
readOnly = false,
registerOptions = {},
type = "text",
hideError,
}: InputProps) {
const intl = useIntl()
const { control } = useFormContext()
@@ -73,7 +74,7 @@ export default function Input({
</Text>
</Caption>
) : null}
{fieldState.error ? (
{fieldState.error && !hideError ? (
<Caption className={styles.error} fontOnly>
<InfoCircleIcon color="red" />
{intl.formatMessage({ id: fieldState.error.message })}

View File

@@ -6,4 +6,5 @@ export interface InputProps
label: string
name: string
registerOptions?: RegisterOptions
hideError?: boolean
}