added react icons

This commit is contained in:
2021-08-20 19:24:05 +02:00
parent deed778cc7
commit adeddc7994
7 changed files with 34 additions and 21 deletions

View File

@@ -3,6 +3,7 @@ import PropTypes from "prop-types"
import { File } from "../generated/graphql"
import sizeToReadable from "../functions/sizeToReadable"
import dateFormat from "../functions/dateFomat"
import { FaRegFileAlt } from "react-icons/fa"
interface Props {
file: File
@@ -12,7 +13,7 @@ const FileElement: React.FC<Props> = (props) => {
return (
<>
<td>
📄 {props.file.name}
<FaRegFileAlt className="inline" /> {props.file.name}
</td>
<td>
{dateFormat(props.file.lastModified)}