refactor: 更新测试用例和组件结构
- 在背景测试中更新菜单项标题,移除图标 - 在 StorageCleaner 页面中更新初始化加载状态的中文文案 - 在 QrCode 组件中修正导入路径 - 在 DecodeResultPaper 中使用 Label 组件替换原生 label 元素 - 移除不再使用的 formatFileSize 函数
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
import { Download } from 'lucide-react';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import { formatBytes } from '@/utils/format';
|
||||
import { useI18n } from '@/utils/chromeI18n';
|
||||
|
||||
@@ -61,9 +62,9 @@ export default function DecodeResultPaper({
|
||||
|
||||
{/* 文件名输入 */}
|
||||
<div className="mb-3">
|
||||
<label className="block text-xs font-medium text-muted-foreground mb-1">
|
||||
<Label className="block text-xs font-medium text-muted-foreground mb-1">
|
||||
{t('decodedFileName')}
|
||||
</label>
|
||||
</Label>
|
||||
<Input value={fileName} onChange={(e) => onFileNameChange(e.target.value)} />
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user