fix: replace undefined formatByteSize with formatBytes
JsonConvertSection.tsx and JsonFormatSection.tsx were calling formatByteSize which doesn't exist. The correct function name imported from @/utils/format is formatBytes.
This commit is contained in:
Generated
+53
-143
File diff suppressed because it is too large
Load Diff
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user