File tree Expand file tree Collapse file tree
src/js/components/walkthrough Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " react-help-desk" ,
3- "version" : " 1.0.10 " ,
3+ "version" : " 1.1.0 " ,
44 "description" : " 💁 React Components for creating a help desk system" ,
55 "main" : " dist/js/index.js" ,
66 "scripts" : {
6363 "moveto" : " git+https://github.com/onlicar/moveTo.git" ,
6464 "prop-types" : " ^15.5.10" ,
6565 "react-hotkeys" : " ^0.10.0" ,
66+ "react-modal" : " ^2.3.2" ,
6667 "react-transition-group" : " ^2.2.0" ,
6768 "slugify" : " ^1.2.1" ,
6869 "sweet-scroll" : " ^2.2.1" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import Popover from './Popover';
99import Underline from './highlights/Underline' ;
1010import Solo from './highlights/Solo' ;
1111import HighlightClass from './highlights/HighlightClass' ;
12- // import TextModal from './highlights/TextModal';
12+ import TextModal from './highlights/TextModal' ;
1313
1414const getParentElement = props => {
1515 let parent = props . parentSelector ( ) ;
@@ -285,21 +285,21 @@ export default class WalkthroughPortal extends Component {
285285 ) ;
286286 case 'solo' :
287287 return < Solo offset = { offset } key = { key } /> ;
288- // case 'text':
289- // graphic.index = step;
290- // return (
291- // <TextModal
292- // step={graphic}
293- // totalSteps={
294- // activeWalkthrough && activeWalkthrough.steps.length
295- // }
296- // offset={offset}
297- // onNext={this.nextStep}
298- // onPrev={this.prevStep}
299- // onSkip={this.skip}
300- // key={key}
301- // />
302- // );
288+ case 'text' :
289+ graphic . index = step ;
290+ return (
291+ < TextModal
292+ step = { graphic }
293+ totalSteps = {
294+ activeWalkthrough && activeWalkthrough . steps . length
295+ }
296+ offset = { offset }
297+ onNext = { this . nextStep }
298+ onPrev = { this . prevStep }
299+ onSkip = { this . skip }
300+ key = { key }
301+ />
302+ ) ;
303303 default :
304304 return (
305305 < div
You can’t perform that action at this time.
0 commit comments