added file size

This commit is contained in:
2021-07-27 21:24:20 +02:00
parent c20e894d52
commit a24ed03e1f
7 changed files with 465 additions and 452 deletions

View File

@@ -1,6 +1,7 @@
import React from "react"
import PropTypes from "prop-types"
import { File } from "../generated/graphql"
import sizeToReadable from "../functions/sizeToReadable"
interface Props {
file: File
@@ -10,10 +11,10 @@ const FileElement: React.FC<Props> = (props) => {
return (
<>
<td>
📄
📄 {props.file.name}
</td>
<td>
{props.file.name}
{sizeToReadable(props.file.size)}
</td>
</>
)