Skip to content

Commit f79b6f3

Browse files
authored
Merge pull request #247 from rebeccaalpert/uploads
feat(FileDetails): Add additional file types
2 parents d7399c8 + 4b3250b commit f79b6f3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/module/src/FileDetails/FileDetails.tsx

+9-1
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,15 @@ export const extensionToLanguage = {
921921
'rst.txt': 'reStructuredText',
922922
wisp: 'wisp',
923923
prg: 'xBase',
924-
prw: 'xBase'
924+
prw: 'xBase',
925+
// manually added for Composer AI
926+
doc: 'Document',
927+
docx: 'Document',
928+
odt: 'Document',
929+
ppt: 'Presentation',
930+
pptx: 'Presentation',
931+
odp: 'Presentation',
932+
pdf: 'PDF'
925933
};
926934

927935
export const FileDetails = ({ fileName }: PropsWithChildren<FileDetailsProps>) => {

0 commit comments

Comments
 (0)