(placement: string, isRTL?: boolean)
| 49 | export type TransitionType = boolean | TransitionComponent; |
| 50 | |
| 51 | export function getOverlayDirection(placement: string, isRTL?: boolean) { |
| 52 | let bsDirection = placement; |
| 53 | if (placement === 'left') { |
| 54 | bsDirection = isRTL ? 'end' : 'start'; |
| 55 | } else if (placement === 'right') { |
| 56 | bsDirection = isRTL ? 'start' : 'end'; |
| 57 | } |
| 58 | return bsDirection; |
| 59 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…