Skip to content

Commit 1ed394c

Browse files
committed
Take down react-modal conflicting with apps
1 parent 292e7cc commit 1ed394c

3 files changed

Lines changed: 156 additions & 44 deletions

File tree

package-lock.json

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

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"moveto": "git+https://github.com/onlicar/moveTo.git",
5353
"prop-types": "^15.5.10",
5454
"react-hotkeys": "^0.10.0",
55-
"react-modal": "^2.3.2",
5655
"react-transition-group": "^2.2.0",
5756
"slugify": "^1.2.1",
5857
"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();
@@ -280,21 +280,21 @@ export default class WalkthroughPortal extends Component {
280280
);
281281
case 'solo':
282282
return <Solo offset={offset} key={key} />;
283-
case 'text':
284-
graphic.index = step;
285-
return (
286-
<TextModal
287-
step={graphic}
288-
totalSteps={
289-
activeWalkthrough && activeWalkthrough.steps.length
290-
}
291-
offset={offset}
292-
onNext={this.nextStep}
293-
onPrev={this.prevStep}
294-
onSkip={this.skip}
295-
key={key}
296-
/>
297-
);
283+
// case 'text':
284+
// graphic.index = step;
285+
// return (
286+
// <TextModal
287+
// step={graphic}
288+
// totalSteps={
289+
// activeWalkthrough && activeWalkthrough.steps.length
290+
// }
291+
// offset={offset}
292+
// onNext={this.nextStep}
293+
// onPrev={this.prevStep}
294+
// onSkip={this.skip}
295+
// key={key}
296+
// />
297+
// );
298298
default:
299299
return (
300300
<div

0 commit comments

Comments
 (0)