trepur_components 0.2.57 → 0.2.58
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.
|
@@ -81,6 +81,11 @@ const TextAndTitle = _ref => {
|
|
|
81
81
|
setIsHovering(false);
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
+
const handleButtonCancel = () => {
|
|
85
|
+
toggleEditState();
|
|
86
|
+
setIsHovering(false);
|
|
87
|
+
};
|
|
88
|
+
|
|
84
89
|
const handleChange = e => {
|
|
85
90
|
setTitleText(e.target.value);
|
|
86
91
|
};
|
|
@@ -115,6 +120,16 @@ const TextAndTitle = _ref => {
|
|
|
115
120
|
buttonHoverTextColor: "#000000",
|
|
116
121
|
buttonHoverBorderColor: "#000000",
|
|
117
122
|
buttonHoverBgColor: "white"
|
|
123
|
+
}), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
124
|
+
buttonClasses: "ml-4",
|
|
125
|
+
buttonText: "Cancel",
|
|
126
|
+
class: true,
|
|
127
|
+
buttonOnClick: handleButtonCancel,
|
|
128
|
+
buttonBgColor: "black",
|
|
129
|
+
buttonTextColor: "white",
|
|
130
|
+
buttonHoverTextColor: "#000000",
|
|
131
|
+
buttonHoverBorderColor: "#000000",
|
|
132
|
+
buttonHoverBgColor: "white"
|
|
118
133
|
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", {
|
|
119
134
|
style: titleStyles,
|
|
120
135
|
className: titleClassList,
|