mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-20 16:53:33 +00:00
Default file icon
This commit is contained in:
parent
b14cb53754
commit
861fa37881
2 changed files with 7 additions and 4 deletions
|
|
@ -71,8 +71,11 @@ function iconPDF () {
|
|||
}
|
||||
|
||||
function iconFile () {
|
||||
return <svg aria-hidden="true" class="UppyIcon" width="44" height="58" viewBox="0 0 44 58">
|
||||
<path d="M27.437.517a1 1 0 0 0-.094.03H4.25C2.037.548.217 2.368.217 4.58v48.405c0 2.212 1.82 4.03 4.03 4.03H39.03c2.21 0 4.03-1.818 4.03-4.03V15.61a1 1 0 0 0-.03-.28 1 1 0 0 0 0-.093 1 1 0 0 0-.03-.032 1 1 0 0 0 0-.03 1 1 0 0 0-.032-.063 1 1 0 0 0-.03-.063 1 1 0 0 0-.032 0 1 1 0 0 0-.03-.063 1 1 0 0 0-.032-.03 1 1 0 0 0-.03-.063 1 1 0 0 0-.063-.062l-14.593-14a1 1 0 0 0-.062-.062A1 1 0 0 0 28 .708a1 1 0 0 0-.374-.157 1 1 0 0 0-.156 0 1 1 0 0 0-.03-.03l-.003-.003zM4.25 2.547h22.218v9.97c0 2.21 1.82 4.03 4.03 4.03h10.564v36.438a2.02 2.02 0 0 1-2.032 2.032H4.25c-1.13 0-2.032-.9-2.032-2.032V4.58c0-1.13.902-2.032 2.03-2.032zm24.218 1.345l10.375 9.937.75.718H30.5c-1.13 0-2.032-.9-2.032-2.03V3.89z" />
|
||||
return <svg aria-hidden="true" class="UppyIcon" width="25" height="25" viewBox="0 0 25 25">
|
||||
<g fill="#BFC8D1" fill-rule="nonzero">
|
||||
<path d="M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z" />
|
||||
<path d="M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z" />
|
||||
</g>
|
||||
</svg>
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
const { iconText, iconAudio, iconVideo, iconPDF } = require('../components/icons')
|
||||
const { iconFile, iconText, iconAudio, iconVideo, iconPDF } = require('../components/icons')
|
||||
|
||||
module.exports = function getIconByMime (fileType) {
|
||||
const defaultChoice = {
|
||||
color: '#babcbe',
|
||||
icon: ''
|
||||
icon: iconFile()
|
||||
}
|
||||
|
||||
if (!fileType) return defaultChoice
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue