mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Browser: Update UI with new components and elements (#5671)
This commit is contained in:
@@ -18,6 +18,8 @@ import React from "react"
|
||||
import ObjectContainer from "./ObjectContainer"
|
||||
import PrefixContainer from "./PrefixContainer"
|
||||
|
||||
const Aux = props => props.children
|
||||
|
||||
export const ObjectsList = ({ objects }) => {
|
||||
const list = objects.map(object => {
|
||||
if (object.name.endsWith("/")) {
|
||||
@@ -26,7 +28,7 @@ export const ObjectsList = ({ objects }) => {
|
||||
return <ObjectContainer object={object} key={object.name} />
|
||||
}
|
||||
})
|
||||
return <div>{list}</div>
|
||||
return <Aux>{list}</Aux>
|
||||
}
|
||||
|
||||
export default ObjectsList
|
||||
|
||||
Reference in New Issue
Block a user