fix: replace undefined formatByteSize with formatBytes (#57)

JsonConvertSection.tsx and JsonFormatSection.tsx were calling
formatByteSize which doesn't exist. The correct function name
imported from @/utils/format is formatBytes.

Co-authored-by: Ubuntu <ubuntu@localhost.localdomain>
This commit is contained in:
LingandRX
2026-05-30 12:55:04 +08:00
committed by GitHub
parent f9821553b3
commit 3f447708b7
3 changed files with 55 additions and 145 deletions
+53 -143
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -103,7 +103,7 @@ export default function JsonConvertSection({
<span> <span>
{t('jsonFormat:formattedSize')}:{' '} {t('jsonFormat:formattedSize')}:{' '}
<span className="font-semibold text-foreground/80"> <span className="font-semibold text-foreground/80">
{formatByteSize(result.outputBytes)} {formatBytes(result.outputBytes)}
</span> </span>
</span> </span>
</div> </div>
+1 -1
View File
@@ -134,7 +134,7 @@ export default function JsonFormatSection() {
<span> <span>
{t('jsonFormat:formattedSize')}:{' '} {t('jsonFormat:formattedSize')}:{' '}
<span className="font-semibold text-foreground/80"> <span className="font-semibold text-foreground/80">
{formatByteSize(result.formattedBytes)} {formatBytes(result.formattedBytes)}
</span> </span>
</span> </span>
</div> </div>