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
5974d4ed
authored
Jun 25, 2023
by
mrhaoji
Committed by
GitHub
Jun 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: show equivalent amount next to remaining quota in the user editing page (#198)
parent
44a78a75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
web/src/pages/User/EditUser.js
+2
-1
No files found.
web/src/pages/User/EditUser.js
View file @
5974d4ed
...
...
@@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react';
import
{
Button
,
Form
,
Header
,
Segment
}
from
'semantic-ui-react'
;
import
{
useParams
}
from
'react-router-dom'
;
import
{
API
,
showError
,
showSuccess
}
from
'../../helpers'
;
import
{
renderQuota
,
renderQuotaWithPrompt
}
from
'../../helpers/render'
;
const
EditUser
=
()
=>
{
const
params
=
useParams
();
...
...
@@ -134,7 +135,7 @@ const EditUser = () => {
<
/Form.Field
>
<
Form
.
Field
>
<
Form
.
Input
label
=
'剩余额度'
label
=
{
`剩余额度
${
renderQuotaWithPrompt
(
quota
)}
`
}
name
=
'quota'
placeholder
=
{
'请输入新的剩余额度'
}
onChange
=
{
handleInputChange
}
...
...
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