Skip to content

Commit 62e3485

Browse files
committed
Re-enable text modals
1 parent d5b56cc commit 62e3485

3 files changed

Lines changed: 21 additions & 23 deletions

File tree

package-lock.json

Lines changed: 3 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {
@@ -63,6 +63,7 @@
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",

src/js/components/walkthrough/WalkthroughPortal.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Popover from './Popover';
99
import Underline from './highlights/Underline';
1010
import Solo from './highlights/Solo';
1111
import HighlightClass from './highlights/HighlightClass';
12-
// import TextModal from './highlights/TextModal';
12+
import TextModal from './highlights/TextModal';
1313

1414
const 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

0 commit comments

Comments
 (0)