Jesus sucks
This commit is contained in:
14
backend/frontend/node_modules/react-bootstrap/esm/helpers.js
generated
vendored
Normal file
14
backend/frontend/node_modules/react-bootstrap/esm/helpers.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import * as React from 'react';
|
||||
export class BsPrefixComponent extends React.Component {}
|
||||
|
||||
// Need to use this instead of typeof Component to get proper type checking.
|
||||
|
||||
export function getOverlayDirection(placement, isRTL) {
|
||||
let bsDirection = placement;
|
||||
if (placement === 'left') {
|
||||
bsDirection = isRTL ? 'end' : 'start';
|
||||
} else if (placement === 'right') {
|
||||
bsDirection = isRTL ? 'start' : 'end';
|
||||
}
|
||||
return bsDirection;
|
||||
}
|
||||
Reference in New Issue
Block a user