Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Media/InfographicThumbnails/ADHDTemplate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Media/templateImages/abc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Media/templateImages/ear.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Media/templateImages/num.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Media/templateImages/personWithBook.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Media/templateImages/visual.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/components/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import HIVInfog from '../../Media/InfographicThumbnails/HIVInfog.png';
import ObesityInfog from '../../Media/InfographicThumbnails/ObesityInfog.png';
import LGBTInfog from '../../Media/InfographicThumbnails/LGBTInfog.png';
import DiabetesInfog from '../../Media/InfographicThumbnails/DiabetesInfog.png';
import ADHDInfog from '../../Media/InfographicThumbnails/ADHDTemplate.png';

class Home extends React.Component
{
Expand Down Expand Up @@ -48,6 +49,11 @@ class Home extends React.Component
editorCode: 'DiabetesTemplateOne',
url: DiabetesInfog,
},
{
name: 'ADHD Infographic',
editorCode: 'ADHDTemplateOne',
url: ADHDInfog,
},
];
this.state = {
currentQuery: this._infogContent,
Expand Down
5 changes: 4 additions & 1 deletion src/components/InfographicEditor/CanvasContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import React from 'react';
import { HIVTemplateOne, ObesityTemplateOne, ViolenceTemplateOne,
DiabetesTemplateOne } from '../../js/InfographicTemplates/index';
DiabetesTemplateOne, ADHDTemplateOne } from '../../js/InfographicTemplates/index';
import '../../css/React/CanvasContainer.css';

/**
Expand Down Expand Up @@ -158,6 +158,9 @@ class CanvasContainer extends React.Component
case 'DiabetesTemplateOne':
this._infogObj = new DiabetesTemplateOne(handlerObj);
break;
case 'ADHDTemplateOne':
this._infogObj = new ADHDTemplateOne(handlerObj);
break;
default:
this._infogObj = new HIVTemplateOne(handlerObj);
break;
Expand Down
Loading