style: 技能配置变量表格删除按钮改为文字样式
- 删除按钮从图标改为文字,使用 text-btn text-btn-danger 样式 - 操作列宽度从 80px 调整为 120px(col-actions--narrow) - 移除未使用的 FiX 图标导入
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import { useParams, useNavigate } from 'react-router-dom';
|
||||
import { FiPlus, FiX, FiUsers, FiStar, FiPackage } from 'react-icons/fi';
|
||||
import { FiPlus, FiUsers, FiStar, FiPackage } from 'react-icons/fi';
|
||||
import { skills, userSubscriptions } from '../../data/skills.js';
|
||||
import Toast from '../../components/common/Toast.jsx';
|
||||
|
||||
@@ -157,7 +157,7 @@ function SkillConfigPage() {
|
||||
<tr>
|
||||
<th>Key</th>
|
||||
<th>Value</th>
|
||||
<th className="col-actions--tiny">操作</th>
|
||||
<th className="col-actions--narrow">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -191,12 +191,12 @@ function SkillConfigPage() {
|
||||
</div>
|
||||
)}
|
||||
</td>
|
||||
<td>
|
||||
<td className="col-actions--narrow">
|
||||
<button
|
||||
className="text-btn text-btn-danger"
|
||||
onClick={() => handleRemoveConfig(index)}
|
||||
>
|
||||
<FiX />
|
||||
删除
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user