Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react'
import ReactDOM from 'react-dom'
import Moment from 'moment'
import FileBrowser, { FileRenderers, FolderRenderers, Groupers, Icons } from 'react-keyed-file-browser'
const mount = document.querySelectorAll('div.demo-mount-grouped-thumbnails')
ReactDOM.render(
render() {
return (
)
}
}
},
{
key: 'centipede.png',
modified: +Moment().subtract(0.5, 'hours'),
size: 1.5 * 1024 * 1024,
},
{
key: 'possum.png',
modified: +Moment().subtract(32, 'days'),
size: 545 * 1024,
},
]}
renderStyle="list"
headerRenderer={null}
group={Groupers.GroupByModifiedRelative}
fileRenderer={FileRenderers.ListThumbnailFile}
folderRenderer={FolderRenderers.ListThumbnailFolder}
/>,
mount[0]
)
{
key: 'centipede.png',
modified: +Moment().subtract(0.5, 'hours'),
size: 1.5 * 1024 * 1024,
},
{
key: 'possum.png',
modified: +Moment().subtract(32, 'days'),
size: 545 * 1024,
},
]}
renderStyle="list"
headerRenderer={null}
group={Groupers.GroupByModifiedRelative}
fileRenderer={FileRenderers.ListThumbnailFile}
folderRenderer={FolderRenderers.ListThumbnailFolder}
/>,
mount[0]
)
size: 52 * 1024,
},
{
key: 'centipede.png',
modified: +Moment().subtract(0.5, 'hours'),
size: 1.5 * 1024 * 1024,
},
{
key: 'possum.png',
modified: +Moment().subtract(32, 'days'),
size: 545 * 1024,
},
]}
renderStyle="list"
headerRenderer={null}
group={Groupers.GroupByModifiedRelative}
fileRenderer={FileRenderers.ListThumbnailFile}
folderRenderer={FolderRenderers.ListThumbnailFolder}
/>,
mount[0]
)