Skip to content

Commit

Permalink
feat: added csv icon for files (#511)
Browse files Browse the repository at this point in the history
* feat: added csv icon for files

* fix: csv icon

* chore: Update src/icons/file-csv.svg

Co-authored-by: Piero Nicolli <[email protected]>

---------

Co-authored-by: Piero Nicolli <[email protected]>
  • Loading branch information
giuliaghisini and pnicolli authored Feb 2, 2024
1 parent f6fa6bd commit 1c2e689
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
- ...
-->
## Versione x.x.x (xx/xx/xxxx)

### Novità

- Aggiunta l'icona per il formato di file CSV


## Versione 11.3.3 (30/01/2024)

Expand Down
5 changes: 5 additions & 0 deletions src/helpers/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import faFileXsd from 'design-comuni-plone-theme/icons/file-xsd.svg';
import faFileOdp from 'design-comuni-plone-theme/icons/file-odp.svg';
import faFileOds from 'design-comuni-plone-theme/icons/file-ods.svg';
import faFileOdt from 'design-comuni-plone-theme/icons/file-odt.svg';
import faFileCSV from 'design-comuni-plone-theme/icons/file-csv.svg';

export const FILE_FORMATS = {
'text/rtf': { icon: { lib: 'far', name: 'file-alt' }, format_name: 'rtf' },
Expand Down Expand Up @@ -87,6 +88,10 @@ export const FILE_FORMATS = {
icon: { lib: '', name: faFileXml, svg_format: true },
format_name: 'XML',
},
'text/csv': {
icon: { lib: '', name: faFileCSV, svg_format: true },
format_name: 'CSV',
},
'application/xml': {
icon: { lib: '', name: faFileXml, svg_format: true },
format_name: 'XML',
Expand Down
1 change: 1 addition & 0 deletions src/icons/file-csv.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1c2e689

Please sign in to comment.