UNPKG

@qite/tide-booking-component

Version:

React Booking wizard & Booking product component for Tide

11 lines (8 loc) 247 B
import { get } from 'lodash'; export const hasVisibleError = (formik: any, key: string) => get(formik.errors, key) && get(formik.touched, key); export interface ControlProps<T> { translations: any; value: T; formik: any; name: string; }