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
efac991c
Commit
efac991c
authored
Dec 09, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix labels
parent
79044062
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
ApiKeyForm.tsx
ui/apiKey/ApiKeyModal/ApiKeyForm.tsx
+1
-3
PublicTagFormComment.tsx
ui/publicTags/PublicTagsForm/PublicTagFormComment.tsx
+2
-4
No files found.
ui/apiKey/ApiKeyModal/ApiKeyForm.tsx
View file @
efac991c
...
@@ -112,9 +112,7 @@ const ApiKeyForm: React.FC<Props> = ({ data, onClose, setAlertVisible }) => {
...
@@ -112,9 +112,7 @@ const ApiKeyForm: React.FC<Props> = ({ data, onClose, setAlertVisible }) => {
isInvalid=
{
Boolean
(
errors
.
name
)
}
isInvalid=
{
Boolean
(
errors
.
name
)
}
maxLength=
{
NAME_MAX_LENGTH
}
maxLength=
{
NAME_MAX_LENGTH
}
/>
/>
<
FormLabel
>
<
InputPlaceholder
text=
"Application name for API key (e.g Web3 project)"
error=
{
errors
.
name
}
/>
<
InputPlaceholder
text=
"Application name for API key (e.g Web3 project)"
error=
{
errors
.
name
}
/>
</
FormLabel
>
</
FormControl
>
</
FormControl
>
);
);
},
[
errors
,
formBackgroundColor
]);
},
[
errors
,
formBackgroundColor
]);
...
...
ui/publicTags/PublicTagsForm/PublicTagFormComment.tsx
View file @
efac991c
import
type
{
InputProps
}
from
'
@chakra-ui/react
'
;
import
type
{
InputProps
}
from
'
@chakra-ui/react
'
;
import
{
FormControl
,
FormLabel
,
Textarea
}
from
'
@chakra-ui/react
'
;
import
{
FormControl
,
Textarea
}
from
'
@chakra-ui/react
'
;
import
React
,
{
useCallback
}
from
'
react
'
;
import
React
,
{
useCallback
}
from
'
react
'
;
import
type
{
ControllerRenderProps
,
Control
,
FieldError
}
from
'
react-hook-form
'
;
import
type
{
ControllerRenderProps
,
Control
,
FieldError
}
from
'
react-hook-form
'
;
import
{
Controller
}
from
'
react-hook-form
'
;
import
{
Controller
}
from
'
react-hook-form
'
;
...
@@ -24,9 +24,7 @@ export default function PublicTagFormComment({ control, error, size }: Props) {
...
@@ -24,9 +24,7 @@ export default function PublicTagFormComment({ control, error, size }: Props) {
{
...
field
}
{
...
field
}
isInvalid=
{
Boolean
(
error
)
}
isInvalid=
{
Boolean
(
error
)
}
/>
/>
<
FormLabel
>
<
InputPlaceholder
text=
"Specify the reason for adding tags and color preference(s)"
error=
{
error
}
/>
<
InputPlaceholder
text=
"Specify the reason for adding tags and color preference(s)"
error=
{
error
}
/>
</
FormLabel
>
</
FormControl
>
</
FormControl
>
);
);
},
[
error
,
size
]);
},
[
error
,
size
]);
...
...
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