ywana-core8 0.0.915 → 0.0.916

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -3020,7 +3020,7 @@
3020
3020
  */
3021
3021
  var Kanban = function Kanban(_ref) {
3022
3022
  var children = _ref.children;
3023
- React.useMemo(function () {
3023
+ var hasSwimlanes = React.useMemo(function () {
3024
3024
  var found = React__default["default"].Children.map(children, function (child) {
3025
3025
  if (child.type.name === KanbanSwimlane.name) {
3026
3026
  return child;
@@ -3028,8 +3028,9 @@
3028
3028
  });
3029
3029
  return found.length > 0;
3030
3030
  });
3031
+ var style = hasSwimlanes ? "with-swimlanes" : "";
3031
3032
  return /*#__PURE__*/React__default["default"].createElement("div", {
3032
- className: "kanban with-swimlanes"
3033
+ className: "kanban " + style
3033
3034
  }, children);
3034
3035
  };
3035
3036
  var KanbanHeader = function KanbanHeader(props) {