Skip to content
Snippets Groups Projects
Commit ac2d2f4d authored by Allen Gilliland's avatar Allen Gilliland
Browse files

few fixes and tweaks to get the new chart/dash illustration icons working and...

few fixes and tweaks to get the new chart/dash illustration icons working and showing up properly on Recent Views box on homepage.
parent 207665d4
No related branches found
No related tags found
No related merge requests found
......@@ -24,14 +24,14 @@ export default class RecentViews extends Component {
renderIllustration(item) {
if (item.model === 'card' && 'display' in item.model_object) {
const icon = '/app/components/icons/assets/illustration_visualization_'+item.model_object.display+'.png';
const icon = 'illustration-'+item.model_object.display;
return (
<img className="float-left" style={{height: "24px"}} src={icon} />
<Icon name={icon} width={22} height={22} />
);
} else if(item.model === 'dashboard') {
return (
<img className="float-left" style={{height: "24px"}} src="/app/components/icons/assets/illustration_visualization_dashboard.png" />
<Icon name={'illustration-dashboard'} width={22} height={22} />
);
} else {
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment