Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Vũ Hoàng Anh
canifa_note
Commits
c27e38b1
Unverified
Commit
c27e38b1
authored
Nov 03, 2022
by
boojack
Committed by
GitHub
Nov 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: enable `no-unused-vars` (#408)
parent
cf750541
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
18 deletions
+3
-18
.eslintrc.json
web/.eslintrc.json
+2
-0
SystemSection.tsx
web/src/components/Settings/SystemSection.tsx
+1
-18
No files found.
web/.eslintrc.json
View file @
c27e38b1
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
"endOfLine"
:
"auto"
"endOfLine"
:
"auto"
}
}
],
],
"no-unused-vars"
:
"off"
,
"@typescript-eslint/no-unused-vars"
:
"error"
,
"@typescript-eslint/no-explicit-any"
:
[
"off"
],
"@typescript-eslint/no-explicit-any"
:
[
"off"
],
"react/react-in-jsx-scope"
:
"off"
"react/react-in-jsx-scope"
:
"off"
},
},
...
...
web/src/components/Settings/SystemSection.tsx
View file @
c27e38b1
...
@@ -2,25 +2,8 @@ import { useEffect, useState } from "react";
...
@@ -2,25 +2,8 @@ import { useEffect, useState } from "react";
import
{
useTranslation
}
from
"react-i18next"
;
import
{
useTranslation
}
from
"react-i18next"
;
import
Switch
from
"@mui/joy/Switch"
;
import
Switch
from
"@mui/joy/Switch"
;
import
*
as
api
from
"../../helpers/api"
;
import
*
as
api
from
"../../helpers/api"
;
import
{
globalService
,
userService
}
from
"../../services"
;
import
Selector
from
"../common/Selector"
;
import
"../../less/settings/preferences-section.less"
;
import
"../../less/settings/preferences-section.less"
;
const
localeSelectorItems
=
[
{
text
:
"English"
,
value
:
"en"
,
},
{
text
:
"中文"
,
value
:
"zh"
,
},
{
text
:
"Tiếng Việt"
,
value
:
"vi"
,
},
];
interface
State
{
interface
State
{
allowSignUp
:
boolean
;
allowSignUp
:
boolean
;
}
}
...
@@ -55,7 +38,7 @@ const SystemSection = () => {
...
@@ -55,7 +38,7 @@ const SystemSection = () => {
<
div
className=
"section-container preferences-section-container"
>
<
div
className=
"section-container preferences-section-container"
>
<
p
className=
"title-text"
>
{
t
(
"common.basic"
)
}
</
p
>
<
p
className=
"title-text"
>
{
t
(
"common.basic"
)
}
</
p
>
<
label
className=
"form-label selector"
>
<
label
className=
"form-label selector"
>
<
span
className=
"normal-text"
>
Allow user sign
U
p
</
span
>
<
span
className=
"normal-text"
>
Allow user sign
u
p
</
span
>
<
Switch
size=
"sm"
checked=
{
state
.
allowSignUp
}
onChange=
{
(
event
)
=>
handleAllowSignUpChanged
(
event
.
target
.
checked
)
}
/>
<
Switch
size=
"sm"
checked=
{
state
.
allowSignUp
}
onChange=
{
(
event
)
=>
handleAllowSignUpChanged
(
event
.
target
.
checked
)
}
/>
</
label
>
</
label
>
</
div
>
</
div
>
...
...
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