Skip to content

Commit 6c59c0e

Browse files
Merge pull request #767 from OpenSignLabs/raktima-opensignlabs-patch-8
feat: add help button for text validation
2 parents 7f0f81c + 32c75d1 commit 6c59c0e

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

apps/OpenSign/src/components/pdf/WidgetNameModal.js

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { textInputWidget } from "../../constant/Utils";
66
import PremiumAlertHeader from "../../primitives/PremiumAlertHeader";
77
import Upgrade from "../../primitives/Upgrade";
88
import { isEnableSubscription } from "../../constant/const";
9+
import Tooltip from "../../primitives/Tooltip";
910

1011
const WidgetNameModal = (props) => {
1112
const [formdata, setFormdata] = useState({
@@ -140,16 +141,21 @@ const WidgetNameModal = (props) => {
140141
props.widgetName === textInputWidget) && (
141142
<>
142143
<div className="form-section">
143-
<label
144-
htmlFor="textvalidate"
145-
className={
146-
!props.isSubscribe && isEnableSubscription && "disabled"
147-
}
148-
style={{ fontSize: 13 }}
149-
>
150-
Validation
151-
</label>
152-
{!props.isSubscribe && isEnableSubscription && <Upgrade />}
144+
<div className="flex items-center gap-1">
145+
<label
146+
htmlFor="textvalidate"
147+
className={
148+
!props.isSubscribe && isEnableSubscription && "disabled"
149+
}
150+
style={{ fontSize: 13 }}
151+
>
152+
Validation
153+
</label>
154+
<Tooltip
155+
url={"https://www.w3schools.com/jsref/jsref_obj_regexp.asp"}
156+
/>
157+
{!props.isSubscribe && isEnableSubscription && <Upgrade />}
158+
</div>
153159
<div
154160
className={
155161
!props.isSubscribe && isEnableSubscription && "disabled"
@@ -165,7 +171,7 @@ const WidgetNameModal = (props) => {
165171
<input
166172
className="relative z-20 w-[87%] md:w-[92%] p-2.5 border-[1px] border-[#d1d5db] rounded-l-md outline-none text-xs"
167173
name="textvalidate"
168-
placeholder="Enter custom expression"
174+
placeholder="Enter custom regular expression"
169175
value={formdata.textvalidate}
170176
onChange={(e) => handleChange(e)}
171177
// onBlur={() => handleBlurRegex()}

0 commit comments

Comments
 (0)