Dashboard sipadu mbip
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

TabContent.js 1.3KB

123456789101112131415161718192021222324252627282930313233343536
  1. import _extends from "@babel/runtime/helpers/esm/extends";
  2. import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
  3. import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
  4. import classNames from 'classnames';
  5. import React from 'react';
  6. import { createBootstrapComponent } from './ThemeProvider';
  7. var TabContent =
  8. /*#__PURE__*/
  9. function (_React$Component) {
  10. _inheritsLoose(TabContent, _React$Component);
  11. function TabContent() {
  12. return _React$Component.apply(this, arguments) || this;
  13. }
  14. var _proto = TabContent.prototype;
  15. _proto.render = function render() {
  16. // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
  17. var _this$props = this.props,
  18. bsPrefix = _this$props.bsPrefix,
  19. _this$props$as = _this$props.as,
  20. Component = _this$props$as === void 0 ? 'div' : _this$props$as,
  21. className = _this$props.className,
  22. props = _objectWithoutPropertiesLoose(_this$props, ["bsPrefix", "as", "className"]);
  23. return React.createElement(Component, _extends({}, props, {
  24. className: classNames(className, bsPrefix)
  25. }));
  26. };
  27. return TabContent;
  28. }(React.Component);
  29. export default createBootstrapComponent(TabContent, 'tab-content');