Added unknown file icon IO-525
This commit is contained in:
@@ -50,13 +50,14 @@ function JobsDocumentsComponent({
|
||||
thumb = `${process.env.REACT_APP_CLOUDINARY_ENDPOINT}/${fileType}/upload/c_fill,f_png,h_250,w_250/${value.key}`;
|
||||
break;
|
||||
case "raw":
|
||||
thumb = "";
|
||||
thumb = `${window.location.origin}/file.png`;
|
||||
break;
|
||||
default:
|
||||
thumb = `${process.env.REACT_APP_CLOUDINARY_ENDPOINT}/${fileType}/upload/${process.env.REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS}/${value.key}`;
|
||||
break;
|
||||
}
|
||||
|
||||
const fileName = value.key.split("/").pop();
|
||||
acc.other.push({
|
||||
src: `${
|
||||
process.env.REACT_APP_CLOUDINARY_ENDPOINT
|
||||
@@ -65,6 +66,11 @@ function JobsDocumentsComponent({
|
||||
}${fileType === "raw" ? `.${value.extension}` : ""}`,
|
||||
thumbnail: thumb,
|
||||
tags: [
|
||||
{
|
||||
value: fileName,
|
||||
title: fileName,
|
||||
},
|
||||
|
||||
{ value: value.type, title: value.type },
|
||||
...(value.bill
|
||||
? [
|
||||
|
||||
Reference in New Issue
Block a user