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
dd691ec8
Commit
dd691ec8
authored
Aug 08, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ts fix
parent
b215ee95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
TagInput.tsx
ui/shared/TagInput.tsx
+4
-4
TransactionInput.tsx
ui/shared/TransactionInput.tsx
+4
-4
No files found.
ui/shared/TagInput.tsx
View file @
dd691ec8
...
@@ -8,12 +8,12 @@ import type { ControllerRenderProps, FieldValues } from 'react-hook-form';
...
@@ -8,12 +8,12 @@ import type { ControllerRenderProps, FieldValues } from 'react-hook-form';
const
TAG_MAX_LENGTH
=
35
;
const
TAG_MAX_LENGTH
=
35
;
type
Props
=
{
type
Props
<
Field
>
=
{
field
:
ControllerRenderProps
<
FieldValues
,
'
tag
'
>
;
field
:
Field
;
isInvalid
:
boolean
;
isInvalid
:
boolean
;
}
}
const
TagInput
:
React
.
FC
<
Props
>
=
({
field
,
isInvalid
})
=>
{
function
TagInput
<
Field
extends
Partial
<
ControllerRenderProps
<
FieldValues
,
'
tag
'
>>>
({
field
,
isInvalid
}:
Props
<
Field
>
)
{
return
(
return
(
<
FormControl
variant=
"floating"
id=
"tag"
isRequired
>
<
FormControl
variant=
"floating"
id=
"tag"
isRequired
>
<
Input
<
Input
...
@@ -24,6 +24,6 @@ const TagInput: React.FC<Props> = ({ field, isInvalid }) => {
...
@@ -24,6 +24,6 @@ const TagInput: React.FC<Props> = ({ field, isInvalid }) => {
<
FormLabel
>
Private tag (max 35 characters)
</
FormLabel
>
<
FormLabel
>
Private tag (max 35 characters)
</
FormLabel
>
</
FormControl
>
</
FormControl
>
);
);
}
;
}
export
default
TagInput
;
export
default
TagInput
;
ui/shared/TransactionInput.tsx
View file @
dd691ec8
...
@@ -8,12 +8,12 @@ import type { ControllerRenderProps, FieldValues } from 'react-hook-form';
...
@@ -8,12 +8,12 @@ import type { ControllerRenderProps, FieldValues } from 'react-hook-form';
const
HASH_LENGTH
=
66
;
const
HASH_LENGTH
=
66
;
type
Props
=
{
type
Props
<
Field
>
=
{
field
:
ControllerRenderProps
<
FieldValues
,
'
transaction
'
>
;
field
:
Field
;
isInvalid
:
boolean
;
isInvalid
:
boolean
;
}
}
const
AddressInput
:
React
.
FC
<
Props
>
=
({
field
,
isInvalid
})
=>
{
function
AddressInput
<
Field
extends
Partial
<
ControllerRenderProps
<
FieldValues
,
'
transaction
'
>>>
({
field
,
isInvalid
}:
Props
<
Field
>
)
{
return
(
return
(
<
FormControl
variant=
"floating"
id=
"transaction"
isRequired
>
<
FormControl
variant=
"floating"
id=
"transaction"
isRequired
>
<
Input
<
Input
...
@@ -24,6 +24,6 @@ const AddressInput: React.FC<Props> = ({ field, isInvalid }) => {
...
@@ -24,6 +24,6 @@ const AddressInput: React.FC<Props> = ({ field, isInvalid }) => {
<
FormLabel
>
Transaction hash (0x...)
</
FormLabel
>
<
FormLabel
>
Transaction hash (0x...)
</
FormLabel
>
</
FormControl
>
</
FormControl
>
);
);
}
;
}
export
default
AddressInput
;
export
default
AddressInput
;
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