mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Refactor delete object and share object components (#5537)
This commit is contained in:
committed by
Harshavardhana
parent
566ac78b8b
commit
da4558a8f7
@@ -18,16 +18,17 @@ import React from "react"
|
||||
import humanize from "humanize"
|
||||
import Moment from "moment"
|
||||
import ObjectItem from "./ObjectItem"
|
||||
import ObjectActions from "./ObjectActions"
|
||||
import * as actionsObjects from "./actions"
|
||||
|
||||
export const ObjectContainer = ({ object }) => {
|
||||
const actionButtons = []
|
||||
const actionButtons = <ObjectActions object={object} />
|
||||
const props = {
|
||||
name: object.name,
|
||||
contentType: object.contentType,
|
||||
size: humanize.filesize(object.size),
|
||||
lastModified: Moment(object.lastModified).format("lll"),
|
||||
actionButtons: []
|
||||
actionButtons: actionButtons
|
||||
}
|
||||
return <ObjectItem {...props} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user