( labelHeight: number, height: any = 0, minHeight: number )
| 61 | }; |
| 62 | |
| 63 | export const calculateInputHeight = ( |
| 64 | labelHeight: number, |
| 65 | height: any = 0, |
| 66 | minHeight: number |
| 67 | ): number => { |
| 68 | const finalHeight = height > 0 ? height : labelHeight; |
| 69 | |
| 70 | if (height > 0) return height; |
| 71 | return finalHeight < minHeight ? minHeight : finalHeight; |
| 72 | }; |
| 73 | |
| 74 | export const calculatePadding = (props: PaddingProps): number => { |
| 75 | const { height, multiline = false } = props; |
no outgoing calls
no test coverage detected
searching dependent graphs…