fix: icon styling with className (#2714)
* fix: icon styling with className * docs: Add resources to docs
This commit is contained in:
1 parent
5c8ee7f906
commit
ea390cc5d8
3 files changed
+10
-29
No files matched your search
@@ -40,6 +40,14 @@ Science (EOSS) grantees
|
||||
Healthcare Imaging with Cloud Healthcare API
|
||||
[[Video]](https://www.youtube.com/watch?v=2MiX9ScHFhY)
|
||||
|
||||
## 2020
|
||||
|
||||
### OHIF ITCR Pitch
|
||||
|
||||
OHIF pitch for Informatics Technology for Cancer Research (ITCR)
|
||||
[[Slides]](https://docs.google.com/presentation/d/1MZXnZrVAnjmhVIWqC-aRSvJOoMMRLhLddACdCa1TybM/edit?usp=sharing)
|
||||
[[Video]](https://vimeo.com/678769373/625bdb8793)
|
||||
|
||||
## 2019
|
||||
|
||||
### OHIF and VTK.js Training Course
|
||||
|
||||
@@ -2,15 +2,7 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import getIcon from './getIcon';
|
||||
|
||||
const Icon = ({ name, className, ...otherProps }) => {
|
||||
if (className) {
|
||||
return (
|
||||
<div className={className}>
|
||||
{getIcon(name, className, { ...otherProps })}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
const Icon = ({ name, ...otherProps }) => {
|
||||
return <React.Fragment>{getIcon(name, { ...otherProps })}</React.Fragment>;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user