mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-12 11:23:42 +08:00
chore: update default theme style
This commit is contained in:
@@ -287,7 +287,7 @@ const UsersTable = () => {
|
||||
<div>
|
||||
<Button
|
||||
size={'small'}
|
||||
color='blue'
|
||||
positive
|
||||
onClick={() => {
|
||||
manageUser(user.username, 'promote', idx);
|
||||
}}
|
||||
@@ -297,7 +297,7 @@ const UsersTable = () => {
|
||||
</Button>
|
||||
<Button
|
||||
size={'small'}
|
||||
color='orange'
|
||||
color={'yellow'}
|
||||
onClick={() => {
|
||||
manageUser(user.username, 'demote', idx);
|
||||
}}
|
||||
@@ -309,7 +309,7 @@ const UsersTable = () => {
|
||||
trigger={
|
||||
<Button
|
||||
size='small'
|
||||
color='red'
|
||||
negative
|
||||
disabled={user.role === 100}
|
||||
>
|
||||
删除
|
||||
@@ -320,7 +320,7 @@ const UsersTable = () => {
|
||||
hoverable
|
||||
>
|
||||
<Button
|
||||
color='red'
|
||||
negative
|
||||
onClick={() => {
|
||||
manageUser(user.username, 'delete', idx);
|
||||
}}
|
||||
@@ -330,8 +330,6 @@ const UsersTable = () => {
|
||||
</Popup>
|
||||
<Button
|
||||
size={'small'}
|
||||
color={user.status === 1 ? 'grey' : 'green'}
|
||||
basic={user.status === 1}
|
||||
onClick={() => {
|
||||
manageUser(
|
||||
user.username,
|
||||
@@ -345,7 +343,6 @@ const UsersTable = () => {
|
||||
</Button>
|
||||
<Button
|
||||
size={'small'}
|
||||
color='grey'
|
||||
as={Link}
|
||||
to={'/user/edit/' + user.id}
|
||||
>
|
||||
@@ -361,7 +358,7 @@ const UsersTable = () => {
|
||||
<Table.Footer>
|
||||
<Table.Row>
|
||||
<Table.HeaderCell colSpan='7'>
|
||||
<Button size='small' color='green' as={Link} to='/user/add' loading={loading}>
|
||||
<Button size='small' as={Link} to='/user/add' loading={loading}>
|
||||
添加新的用户
|
||||
</Button>
|
||||
<Dropdown
|
||||
|
||||
Reference in New Issue
Block a user