add size conver
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { convertBytes } from '@/app/lib/convertBytes';
|
||||
export function FileInfoModalWindow({ fileInfo, setWindowClose, setWindowChildren }: any) {
|
||||
|
||||
const exampleTest = {
|
||||
@@ -90,7 +91,7 @@ export function FileInfoModalWindow({ fileInfo, setWindowClose, setWindowChildre
|
||||
Размер
|
||||
</div>
|
||||
<div className="file-info-modal-window-content" >
|
||||
{fileInfo.fileSize ? fileInfo.fileSize : '-'}
|
||||
{fileInfo.fileSize ? convertBytes(fileInfo.fileSize) : '-'}
|
||||
</div>
|
||||
</div>
|
||||
<div className="file-info-modal-window-item">
|
||||
|
||||
Reference in New Issue
Block a user