Sfoglia il codice sorgente

https://github.com/tracim/tracim/issues/629, add icons colors in DropdownCreateButton

AlexiCauvin 6 anni fa
parent
commit
ff5b1e4173

+ 4 - 1
frontend/src/component/common/Input/SubDropdownCreateButton.jsx Vedi File

@@ -10,7 +10,10 @@ const SubDropdownCreateButton = props => {
10 10
         <div className='subdropdown__link dropdown-item' onClick={e => props.onClickCreateContent(e, props.idFolder, app.slug)} key={app.slug}>
11 11
           <div className={`subdropdown__link__${app.slug} d-flex align-items-center`}>
12 12
             <div className={`subdropdown__link__${app.slug}__icon mr-3`}>
13
-              <i className={`fa fa-fw fa-${app.faIcon}`} />
13
+              <i
14
+                className={`fa fa-fw fa-${app.faIcon}`}
15
+                style={{color: app.hexcolor}}
16
+              />
14 17
             </div>
15 18
             <div className='subdropdown__link__folder__text'>
16 19
               {app.creationLabel}