Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
4a22b161
Commit
4a22b161
authored
Aug 21, 2022
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
validations folder
parent
5d61a842
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
9 additions
and
7 deletions
+9
-7
address.ts
lib/validations/address.ts
+0
-0
email.ts
lib/validations/email.ts
+1
-0
transaction.ts
lib/validations/transaction.ts
+0
-0
CustomAbiForm.tsx
ui/customAbi/CustomAbiModal/CustomAbiForm.tsx
+1
-1
AddressForm.tsx
ui/privateTags/AddressModal/AddressForm.tsx
+1
-1
TransactionForm.tsx
ui/privateTags/TransactionModal/TransactionForm.tsx
+1
-1
PublicTagFormAddressInput.tsx
ui/publicTags/PublicTagsForm/PublicTagFormAddressInput.tsx
+1
-1
PublicTagsForm.tsx
ui/publicTags/PublicTagsForm/PublicTagsForm.tsx
+2
-1
AddressInput.tsx
ui/shared/AddressInput.tsx
+1
-1
AddressForm.tsx
ui/watchlist/AddressModal/AddressForm.tsx
+1
-1
No files found.
lib/
addressValidation
s.ts
→
lib/
validations/addres
s.ts
View file @
4a22b161
File moved
lib/validations/email.ts
0 → 100644
View file @
4a22b161
export
const
EMAIL_REGEXP
=
/^
[\w
.%+-
]
+@
[
a-zA-Z
\d
-
]
+
(?:\.[
a-zA-Z
\d
-
]
+
)
+$/
;
lib/
transactionValidations
.ts
→
lib/
validations/transaction
.ts
View file @
4a22b161
File moved
ui/customAbi/CustomAbiModal/CustomAbiForm.tsx
View file @
4a22b161
...
@@ -14,7 +14,7 @@ import { useForm, Controller } from 'react-hook-form';
...
@@ -14,7 +14,7 @@ import { useForm, Controller } from 'react-hook-form';
import
type
{
CustomAbi
,
CustomAbis
}
from
'
types/api/account
'
;
import
type
{
CustomAbi
,
CustomAbis
}
from
'
types/api/account
'
;
import
{
ADDRESS_REGEXP
}
from
'
lib/
addressValidation
s
'
;
import
{
ADDRESS_REGEXP
}
from
'
lib/
validations/addres
s
'
;
import
AddressInput
from
'
ui/shared/AddressInput
'
;
import
AddressInput
from
'
ui/shared/AddressInput
'
;
type
Props
=
{
type
Props
=
{
...
...
ui/privateTags/AddressModal/AddressForm.tsx
View file @
4a22b161
...
@@ -10,7 +10,7 @@ import { useForm, Controller } from 'react-hook-form';
...
@@ -10,7 +10,7 @@ import { useForm, Controller } from 'react-hook-form';
import
type
{
AddressTag
}
from
'
types/api/account
'
;
import
type
{
AddressTag
}
from
'
types/api/account
'
;
import
{
ADDRESS_REGEXP
}
from
'
lib/
addressValidation
s
'
;
import
{
ADDRESS_REGEXP
}
from
'
lib/
validations/addres
s
'
;
import
AddressInput
from
'
ui/shared/AddressInput
'
;
import
AddressInput
from
'
ui/shared/AddressInput
'
;
import
TagInput
from
'
ui/shared/TagInput
'
;
import
TagInput
from
'
ui/shared/TagInput
'
;
...
...
ui/privateTags/TransactionModal/TransactionForm.tsx
View file @
4a22b161
...
@@ -10,7 +10,7 @@ import { useForm, Controller } from 'react-hook-form';
...
@@ -10,7 +10,7 @@ import { useForm, Controller } from 'react-hook-form';
import
type
{
TransactionTag
}
from
'
types/api/account
'
;
import
type
{
TransactionTag
}
from
'
types/api/account
'
;
import
{
TRANSACTION_HASH_LENGTH
,
TRANSACTION_HASH_REGEXP
}
from
'
lib/
transactionValidations
'
;
import
{
TRANSACTION_HASH_LENGTH
,
TRANSACTION_HASH_REGEXP
}
from
'
lib/
validations/transaction
'
;
import
TagInput
from
'
ui/shared/TagInput
'
;
import
TagInput
from
'
ui/shared/TagInput
'
;
import
TransactionInput
from
'
ui/shared/TransactionInput
'
;
import
TransactionInput
from
'
ui/shared/TransactionInput
'
;
...
...
ui/publicTags/PublicTagsForm/PublicTagFormAddressInput.tsx
View file @
4a22b161
...
@@ -5,7 +5,7 @@ import { Controller } from 'react-hook-form';
...
@@ -5,7 +5,7 @@ import { Controller } from 'react-hook-form';
import
MinusIcon
from
'
icons/minus.svg
'
;
import
MinusIcon
from
'
icons/minus.svg
'
;
import
PlusIcon
from
'
icons/plus.svg
'
;
import
PlusIcon
from
'
icons/plus.svg
'
;
import
{
ADDRESS_REGEXP
}
from
'
lib/
addressValidation
s
'
;
import
{
ADDRESS_REGEXP
}
from
'
lib/
validations/addres
s
'
;
import
AddressInput
from
'
ui/shared/AddressInput
'
;
import
AddressInput
from
'
ui/shared/AddressInput
'
;
import
type
{
Inputs
}
from
'
./PublicTagsForm
'
;
import
type
{
Inputs
}
from
'
./PublicTagsForm
'
;
...
...
ui/publicTags/PublicTagsForm/PublicTagsForm.tsx
View file @
4a22b161
...
@@ -11,6 +11,7 @@ import type { Path } from 'react-hook-form';
...
@@ -11,6 +11,7 @@ import type { Path } from 'react-hook-form';
import
{
useForm
,
useFieldArray
}
from
'
react-hook-form
'
;
import
{
useForm
,
useFieldArray
}
from
'
react-hook-form
'
;
import
type
{
TPublicTagItem
,
TPublicTag
,
TPublicTagAddress
}
from
'
data/publicTags
'
;
import
type
{
TPublicTagItem
,
TPublicTag
,
TPublicTagAddress
}
from
'
data/publicTags
'
;
import
{
EMAIL_REGEXP
}
from
'
lib/validations/email
'
;
import
PublicTagFormAction
from
'
./PublicTagFormAction
'
;
import
PublicTagFormAction
from
'
./PublicTagFormAction
'
;
import
PublicTagFormAddressInput
from
'
./PublicTagFormAddressInput
'
;
import
PublicTagFormAddressInput
from
'
./PublicTagFormAddressInput
'
;
...
@@ -98,7 +99,7 @@ const PublicTagsForm = ({ changeToDataScreen, data }: Props) => {
...
@@ -98,7 +99,7 @@ const PublicTagsForm = ({ changeToDataScreen, data }: Props) => {
fieldName="userEmail"
fieldName="userEmail"
control=
{
control
}
control=
{
control
}
label=
{
placeholders
.
userEmail
}
label=
{
placeholders
.
userEmail
}
pattern=
{
/^
[\w
.%+-
]
+@
[
a-zA-Z
\d
-
]
+
(?:\.[
a-zA-Z
\d
-
]
+
)
+$/
}
pattern=
{
EMAIL_REGEXP
}
hasError=
{
Boolean
(
errors
.
userEmail
)
}
hasError=
{
Boolean
(
errors
.
userEmail
)
}
required
required
/
>
/
>
...
...
ui/shared/AddressInput.tsx
View file @
4a22b161
...
@@ -6,7 +6,7 @@ import {
...
@@ -6,7 +6,7 @@ import {
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
ControllerRenderProps
,
FieldValues
,
Path
}
from
'
react-hook-form
'
;
import
type
{
ControllerRenderProps
,
FieldValues
,
Path
}
from
'
react-hook-form
'
;
import
{
ADDRESS_LENGTH
}
from
'
lib/
addressValidation
s
'
;
import
{
ADDRESS_LENGTH
}
from
'
lib/
validations/addres
s
'
;
type
Props
<
TInputs
extends
FieldValues
,
TInputName
extends
Path
<
TInputs
>>
=
{
type
Props
<
TInputs
extends
FieldValues
,
TInputName
extends
Path
<
TInputs
>>
=
{
field
:
ControllerRenderProps
<
TInputs
,
TInputName
>
;
field
:
ControllerRenderProps
<
TInputs
,
TInputName
>
;
...
...
ui/watchlist/AddressModal/AddressForm.tsx
View file @
4a22b161
...
@@ -14,7 +14,7 @@ import { useForm, Controller } from 'react-hook-form';
...
@@ -14,7 +14,7 @@ import { useForm, Controller } from 'react-hook-form';
import
type
{
TWatchlistItem
}
from
'
types/client/account
'
;
import
type
{
TWatchlistItem
}
from
'
types/client/account
'
;
import
{
ADDRESS_REGEXP
}
from
'
lib/
addressValidation
s
'
;
import
{
ADDRESS_REGEXP
}
from
'
lib/
validations/addres
s
'
;
import
AddressInput
from
'
ui/shared/AddressInput
'
;
import
AddressInput
from
'
ui/shared/AddressInput
'
;
import
TagInput
from
'
ui/shared/TagInput
'
;
import
TagInput
from
'
ui/shared/TagInput
'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment