wip fix
This commit is contained in:
parent
9140f7985e
commit
a838dfff44
|
|
@ -74,7 +74,8 @@ export const EdPropInstanceFile: FC<{
|
||||||
|
|
||||||
const Preview: FC<{ filename: string }> = ({ filename }) => {
|
const Preview: FC<{ filename: string }> = ({ filename }) => {
|
||||||
const p = useGlobal(EDGlobal, "EDITOR");
|
const p = useGlobal(EDGlobal, "EDITOR");
|
||||||
const is_image = isImage(filename.split(".").pop() || "");
|
const ext = filename.split(".").pop() || "";
|
||||||
|
const is_image = isImage(ext);
|
||||||
return (
|
return (
|
||||||
<div className="flex ">
|
<div className="flex ">
|
||||||
{is_image && (
|
{is_image && (
|
||||||
|
|
@ -85,6 +86,9 @@ const Preview: FC<{ filename: string }> = ({ filename }) => {
|
||||||
className={cx("w-[20px] h-[20px] border mr-1")}
|
className={cx("w-[20px] h-[20px] border mr-1")}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
{!is_image && (
|
||||||
|
<div className="uppercase font-bold text-lg text-slate-300">{ext}</div>
|
||||||
|
)}
|
||||||
Browse File
|
Browse File
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue