dhre-ui-kit 0.0.398 → 0.0.399

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/lib/index.js CHANGED
@@ -771,19 +771,17 @@ const BottomDrawer = ({
771
771
  text: title,
772
772
  style: { ...styles$z.title, ...titleStyle }
773
773
  }
774
- )), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: rightTitle?.length ? styles$z.rightSideStyle : {} }, rightTitle?.length ? /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: handleRightTitlePress }, /* @__PURE__ */ React__default["default"].createElement(
774
+ )), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: rightTitle && rightTitle?.length > 0 ? styles$z.rightSideStyle : {} }, rightTitle && rightTitle?.length > 0 ? /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: handleRightTitlePress }, /* @__PURE__ */ React__default["default"].createElement(
775
775
  CustomTypography,
776
776
  {
777
777
  variant: rightTitleVariant,
778
778
  text: rightTitle,
779
779
  style: { ...styles$z.rightTitle, ...rightTitleStyle }
780
780
  }
781
- )) : null, showRightIcon && rightIcon ? React__default["default"].cloneElement(rightIcon, {
781
+ )) : null, showRightIcon && rightIcon ? /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: toggleModal, style: styles$z.rightIconStyle }, React__default["default"].cloneElement(rightIcon, {
782
782
  width: moderateScale(24),
783
- height: moderateScale(24),
784
- style: styles$z.rightIconStyle,
785
- onPress: toggleModal
786
- }) : null))), children))
783
+ height: moderateScale(24)
784
+ })) : null))), children))
787
785
  ),
788
786
  footer ? /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, footer) : null
789
787
  );