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
42b43c05
Commit
42b43c05
authored
Aug 08, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no-any rule
parent
a775d015
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
9 deletions
+12
-9
.eslintrc.js
.eslintrc.js
+1
-0
tsconfig.json
tsconfig.json
+2
-2
PublicTags.tsx
ui/pages/PublicTags.tsx
+4
-2
PublicTagsData.tsx
ui/publicTags/PublicTagsData.tsx
+1
-1
TagInput.tsx
ui/shared/TagInput.tsx
+2
-2
TransactionInput.tsx
ui/shared/TransactionInput.tsx
+2
-2
No files found.
.eslintrc.js
View file @
42b43c05
...
...
@@ -104,6 +104,7 @@ module.exports = {
'
@typescript-eslint/no-use-before-define
'
:
'
off
'
,
'
@typescript-eslint/no-useless-constructor
'
:
[
'
error
'
],
'
@typescript-eslint/type-annotation-spacing
'
:
'
error
'
,
'
@typescript-eslint/no-explicit-any
'
:
[
'
error
'
,
{
ignoreRestArgs
:
true
}
],
// отключены в пользу @typescript-eslint
'
brace-style
'
:
'
off
'
,
...
...
tsconfig.json
View file @
42b43c05
...
...
@@ -17,8 +17,8 @@
"baseUrl"
:
"."
,
"paths"
:
{
"~/*"
:
[
"./*"
]
}
}
,
},
"include"
:
[
"next-env.d.ts"
,
"**/*.ts"
,
"**/*.tsx"
,
"additional.d.ts"
,
"decs.d.ts"
],
"exclude"
:
[
"node_modules"
]
"exclude"
:
[
"node_modules"
]
,
}
ui/pages/PublicTags.tsx
View file @
42b43c05
...
...
@@ -11,6 +11,8 @@ import AccountPageHeader from 'ui/shared/AccountPageHeader';
import
PublicTagsData
from
'
ui/publicTags/PublicTagsData
'
;
import
PublicTagsForm
from
'
ui/publicTags/PublicTagsForm/PublicTagsForm
'
;
import
type
{
TPublicTagItem
}
from
'
data/publicTags
'
;
type
TScreen
=
'
data
'
|
'
form
'
;
type
TToastAction
=
'
added
'
|
'
removed
'
;
...
...
@@ -22,7 +24,7 @@ const toastDescriptions = {
const
PublicTags
:
React
.
FC
=
()
=>
{
const
[
screen
,
setScreen
]
=
useState
<
TScreen
>
(
'
data
'
);
const
[
formData
,
setFormData
]
=
useState
();
const
[
formData
,
setFormData
]
=
useState
<
TPublicTagItem
>
();
const
toast
=
useToast
()
...
...
@@ -39,7 +41,7 @@ const PublicTags: React.FC = () => {
});
},
[
toast
]);
const
changeToFormScreen
=
useCallback
((
data
:
any
)
=>
{
const
changeToFormScreen
=
useCallback
((
data
?:
TPublicTagItem
)
=>
{
setFormData
(
data
);
setScreen
(
'
form
'
);
animateScroll
.
scrollToTop
({
...
...
ui/publicTags/PublicTagsData.tsx
View file @
42b43c05
...
...
@@ -7,7 +7,7 @@ import PublicTagTable from './PublicTagTable/PublicTagTable';
import
DeletePublicTagModal
from
'
./DeletePublicTagModal
'
type
Props
=
{
changeToFormScreen
:
(
data
?:
any
)
=>
void
;
changeToFormScreen
:
(
data
?:
TPublicTagItem
)
=>
void
;
onTagDelete
:
()
=>
void
;
}
...
...
ui/shared/TagInput.tsx
View file @
42b43c05
import
React
from
'
react
'
;
import
type
{
ControllerRenderProps
}
from
'
react-hook-form
'
;
import
type
{
ControllerRenderProps
,
FieldValues
}
from
'
react-hook-form
'
;
import
{
Input
,
...
...
@@ -11,7 +11,7 @@ import {
const
TAG_MAX_LENGTH
=
35
;
type
Props
=
{
field
:
ControllerRenderProps
<
any
,
'
tag
'
>
;
field
:
ControllerRenderProps
<
FieldValues
,
'
tag
'
>
;
isInvalid
:
boolean
;
}
...
...
ui/shared/TransactionInput.tsx
View file @
42b43c05
import
React
from
'
react
'
import
type
{
ControllerRenderProps
}
from
'
react-hook-form
'
;
import
type
{
ControllerRenderProps
,
FieldValues
}
from
'
react-hook-form
'
;
import
{
Input
,
...
...
@@ -10,7 +10,7 @@ import {
const
HASH_LENGTH
=
66
;
type
Props
=
{
field
:
ControllerRenderProps
<
any
,
'
transaction
'
>
;
field
:
ControllerRenderProps
<
FieldValues
,
'
transaction
'
>
;
isInvalid
:
boolean
;
}
...
...
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