Skip to content

Commit c14f1cb

Browse files
committed
fix(*): Adding file extensions for the planned svgs
1 parent 64b0b4e commit c14f1cb

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

src/components/chat/chat-state.ts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,23 @@ export class ChatState {
282282
}
283283

284284
public _fileIconMap: Record<string, string> = {
285-
pdf: this._fileIcon,
285+
css: this._fileIcon,
286+
csv: this._fileIcon,
286287
doc: this._fileIcon,
287288
docx: this._fileIcon,
288-
xls: this._fileIcon,
289-
xlsx: this._fileIcon,
290-
txt: this._fileIcon,
289+
htm: this._fileIcon,
290+
html: this._fileIcon,
291+
js: this._fileIcon,
291292
json: this._jsonIcon,
292-
link: this._linkIcon,
293+
pdf: this._fileIcon,
294+
rtf: this._fileIcon,
295+
svg: this._fileIcon,
296+
txt: this._fileIcon,
297+
url: this._linkIcon,
298+
xls: this._fileIcon,
299+
xlsx: this._jsonIcon,
300+
xml: this._linkIcon,
301+
zip: this._fileIcon,
293302
default: this._fileIcon, // A fallback icon
294303
};
295304

0 commit comments

Comments
 (0)