Skip to content

Commit

Permalink
Hide date for folders (#1060)
Browse files Browse the repository at this point in the history
* hide date for folders

* Update packages/files-ui/src/Components/Modules/FileBrowsers/views/FileSystemItem/FileSystemTableItem.tsx

Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
  • Loading branch information
FSM1 and Tbaut authored May 28, 2021
1 parent 357ba7d commit 85c6a73
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ const FileSystemTableItem = React.forwardRef(
<>
<TableCell align="left">
{
created_at && dayjs.unix(created_at).format("DD MMM YYYY h:mm a")
!isFolder && !!created_at && dayjs.unix(created_at).format("DD MMM YYYY h:mm a")
}
</TableCell>
<TableCell align="left">
Expand Down Expand Up @@ -256,4 +256,4 @@ const FileSystemTableItem = React.forwardRef(

FileSystemTableItem.displayName = "FileSystemTableItem"

export default FileSystemTableItem
export default FileSystemTableItem

0 comments on commit 85c6a73

Please sign in to comment.