Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9c68911a
authored
Mar 28, 2025
by
Ordinary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: use handleFieldChange function on change event
parent
f8efe264
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
30 deletions
+5
-30
web/src/pages/Setting/Operation/SettingsGeneral.js
+5
-30
No files found.
web/src/pages/Setting/Operation/SettingsGeneral.js
View file @
9c68911a
...
...
@@ -143,12 +143,7 @@ export default function GeneralSettings(props) {
size
=
'default'
checkedText
=
'|'
uncheckedText
=
'〇'
onChange
=
{(
value
)
=>
{
setInputs
({
...
inputs
,
DisplayInCurrencyEnabled
:
value
,
});
}}
onChange
=
{
handleFieldChange
(
'DisplayInCurrencyEnabled'
)}
/
>
<
/Col
>
<
Col
xs
=
{
24
}
sm
=
{
12
}
md
=
{
8
}
lg
=
{
8
}
xl
=
{
8
}
>
...
...
@@ -158,12 +153,7 @@ export default function GeneralSettings(props) {
size
=
'default'
checkedText
=
'|'
uncheckedText
=
'〇'
onChange
=
{(
value
)
=>
setInputs
({
...
inputs
,
DisplayTokenStatEnabled
:
value
,
})
}
onChange
=
{
handleFieldChange
(
'DisplayTokenStatEnabled'
)}
/
>
<
/Col
>
<
Col
xs
=
{
24
}
sm
=
{
12
}
md
=
{
8
}
lg
=
{
8
}
xl
=
{
8
}
>
...
...
@@ -173,12 +163,7 @@ export default function GeneralSettings(props) {
size
=
'default'
checkedText
=
'|'
uncheckedText
=
'〇'
onChange
=
{(
value
)
=>
setInputs
({
...
inputs
,
DefaultCollapseSidebar
:
value
,
})
}
onChange
=
{
handleFieldChange
(
'DefaultCollapseSidebar'
)}
/
>
<
/Col
>
<
/Row
>
...
...
@@ -190,12 +175,7 @@ export default function GeneralSettings(props) {
size
=
'default'
checkedText
=
'|'
uncheckedText
=
'〇'
onChange
=
{(
value
)
=>
setInputs
({
...
inputs
,
DemoSiteEnabled
:
value
})
}
onChange
=
{
handleFieldChange
(
'DemoSiteEnabled'
)}
/
>
<
/Col
>
<
Col
xs
=
{
24
}
sm
=
{
12
}
md
=
{
8
}
lg
=
{
8
}
xl
=
{
8
}
>
...
...
@@ -206,12 +186,7 @@ export default function GeneralSettings(props) {
size
=
'default'
checkedText
=
'|'
uncheckedText
=
'〇'
onChange
=
{(
value
)
=>
setInputs
({
...
inputs
,
SelfUseModeEnabled
:
value
})
}
onChange
=
{
handleFieldChange
(
'SelfUseModeEnabled'
)}
/
>
<
/Col
>
<
/Row
>
...
...
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