@@ -6,6 +6,7 @@ import { textInputWidget } from "../../constant/Utils";
6
6
import PremiumAlertHeader from "../../primitives/PremiumAlertHeader" ;
7
7
import Upgrade from "../../primitives/Upgrade" ;
8
8
import { isEnableSubscription } from "../../constant/const" ;
9
+ import Tooltip from "../../primitives/Tooltip" ;
9
10
10
11
const WidgetNameModal = ( props ) => {
11
12
const [ formdata , setFormdata ] = useState ( {
@@ -140,16 +141,21 @@ const WidgetNameModal = (props) => {
140
141
props . widgetName === textInputWidget ) && (
141
142
< >
142
143
< 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 >
153
159
< div
154
160
className = {
155
161
! props . isSubscribe && isEnableSubscription && "disabled"
@@ -165,7 +171,7 @@ const WidgetNameModal = (props) => {
165
171
< input
166
172
className = "relative z-20 w-[87%] md:w-[92%] p-2.5 border-[1px] border-[#d1d5db] rounded-l-md outline-none text-xs"
167
173
name = "textvalidate"
168
- placeholder = "Enter custom expression"
174
+ placeholder = "Enter custom regular expression"
169
175
value = { formdata . textvalidate }
170
176
onChange = { ( e ) => handleChange ( e ) }
171
177
// onBlur={() => handleBlurRegex()}
0 commit comments