File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
src/views/tenant/administration Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,6 @@ import { CippContentCard } from 'src/components/layout'
24
24
import Skeleton from 'react-loading-skeleton'
25
25
import { domainsApi } from 'src/store/api/domains'
26
26
27
- const isValidTenantInput = ( value ) => {
28
- // Check if the input is a valid IPAddress
29
- const ipRegex = new RegExp ( '^([0-9]{1,3}\\.){3}[0-9]{1,3}$' )
30
- return ! ipRegex . test ( value )
31
- }
32
-
33
27
const GeoIPLookup = ( ) => {
34
28
let navigate = useNavigate ( )
35
29
const tenant = useSelector ( ( state ) => state . app . currentTenant )
@@ -80,7 +74,7 @@ const GeoIPLookup = () => {
80
74
render = { ( { handleSubmit, submitting, pristine } ) => {
81
75
return (
82
76
< CForm onSubmit = { handleSubmit } >
83
- < Field name = "domain" validate = { isValidTenantInput } >
77
+ < Field name = "domain" >
84
78
{ ( { input, meta } ) => {
85
79
return (
86
80
< >
You can’t perform that action at this time.
0 commit comments