plataforma-fundacao-componentes 2.21.2 → 2.21.3

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.
@@ -3,7 +3,7 @@ import './ModulosTitle.scss';
3
3
  interface ModulosTitleProps {
4
4
  children: any;
5
5
  showBackButton?: boolean;
6
- onBackClick: (event?: any) => void;
6
+ onBackClick?: (event?: any) => void;
7
7
  }
8
8
  declare function ModulosTitle(props: ModulosTitleProps): JSX.Element;
9
9
  declare namespace ModulosTitle {
package/dist/index.js CHANGED
@@ -8498,11 +8498,7 @@ function ModulosTitle(props) {
8498
8498
  className: rootClassName$1n + "-icon"
8499
8499
  }, React__default.createElement(IconButton$1, {
8500
8500
  icon: React__default.createElement(ArrowLeftIcon, null),
8501
- onClick: function onClick(evt) {
8502
- if (typeof props.onBackClick === 'function') {
8503
- props.onBackClick(evt);
8504
- }
8505
- }
8501
+ onClick: props.onBackClick
8506
8502
  })) : undefined, React__default.createElement("div", {
8507
8503
  className: rootClassName$1n + "-text"
8508
8504
  }, props.children));