feat: SW-1583 Enabled reward night in booking widget

This commit is contained in:
Hrishikesh Vaipurkar
2025-02-27 11:41:04 +01:00
parent 6232ded991
commit 51b70f3032
12 changed files with 247 additions and 69 deletions

View File

@@ -16,6 +16,7 @@ export default function Checkbox({
name,
children,
registerOptions,
hideError,
}: React.PropsWithChildren<CheckboxProps>) {
const { control } = useFormContext()
const { field, fieldState } = useController({
@@ -44,7 +45,7 @@ export default function Checkbox({
</span>
{children}
</span>
{fieldState.error ? (
{fieldState.error && !hideError ? (
<Caption className={styles.error} fontOnly>
<InfoCircleIcon color="red" />
{fieldState.error.message}