Skip to content

Commit

Permalink
New: Autocad svg (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradJChan authored Jun 11, 2019
1 parent 0f278dc commit a2508e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/icons/file_autocad.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/lib/icons/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import ARROW_RIGHT from './arrow_right_24px.svg';
import CHECK_MARK from './checkmark_24px.svg';
import GEAR from './gear_24px.svg';
import FILE_AUDIO from './file_audio.svg';
import FILE_AUTOCAD from './file_autocad.svg';
import FILE_BOX_NOTE from './file_box_note.svg';
import FILE_CODE from './file_code.svg';
import FILE_DICOM from './file_dicom.svg';
Expand Down Expand Up @@ -73,6 +74,7 @@ export const ICON_THUMBNAILS_TOGGLE = THUMBNAILS_TOGGLE;

const FILE_LOADING_ICONS = {
FILE_AUDIO,
FILE_AUTOCAD,
FILE_BOX_NOTE,
FILE_CODE,
FILE_DEFAULT,
Expand Down Expand Up @@ -285,6 +287,11 @@ export const ICON_FILE_MAP = {};
ICON_FILE_MAP[extension] = 'FILE_ZIP';
});

// AUTOCAD ICON EXTENSIONS
['dwg'].forEach((extension) => {
ICON_FILE_MAP[extension] = 'FILE_AUTOCAD';
});

/**
* Map from file extension to svg.
*
Expand Down

0 comments on commit a2508e6

Please sign in to comment.