added react icons
This commit is contained in:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user