added file size
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user