Skip to content

Commit 57355c2

Browse files
author
Carlos Paelinck
authored
Avoid in/out transitions in export and presenter modes (#404)
1 parent f2b29fe commit 57355c2

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

src/components/__snapshots__/manager.test.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,8 @@ exports[`<Manager /> should render the export configuration when specified. 1`]
389389
slideIndex={0}
390390
transition={Array []}
391391
transitionDuration={0}
392+
transitionIn={Array []}
393+
transitionOut={Array []}
392394
>
393395
<div>
394396
Slide Content
@@ -401,6 +403,8 @@ exports[`<Manager /> should render the export configuration when specified. 1`]
401403
slideIndex={1}
402404
transition={Array []}
403405
transitionDuration={0}
406+
transitionIn={Array []}
407+
transitionOut={Array []}
404408
>
405409
<div>
406410
Slide Content

src/components/__snapshots__/presenter.test.js.snap

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ exports[`<Presenter /> should render correctly 1`] = `
107107
slideIndex={1}
108108
transition={Array []}
109109
transitionDuration={0}
110+
transitionIn={Array []}
111+
transitionOut={Array []}
110112
>
111113
<div>
112114
Slide Content
@@ -134,6 +136,8 @@ exports[`<Presenter /> should render correctly 1`] = `
134136
slideIndex={2}
135137
transition={Array []}
136138
transitionDuration={0}
139+
transitionIn={Array []}
140+
transitionOut={Array []}
137141
>
138142
<div>
139143
Slide Content
@@ -288,6 +292,8 @@ exports[`<Presenter /> should render timer when set in params. 1`] = `
288292
slideIndex={1}
289293
transition={Array []}
290294
transitionDuration={0}
295+
transitionIn={Array []}
296+
transitionOut={Array []}
291297
>
292298
<div>
293299
Slide Content
@@ -315,6 +321,8 @@ exports[`<Presenter /> should render timer when set in params. 1`] = `
315321
slideIndex={2}
316322
transition={Array []}
317323
transitionDuration={0}
324+
transitionIn={Array []}
325+
transitionOut={Array []}
318326
>
319327
<div>
320328
Slide Content
@@ -454,6 +462,8 @@ exports[`<Presenter /> should render with notes when slides have them. 1`] = `
454462
slideIndex={1}
455463
transition={Array []}
456464
transitionDuration={0}
465+
transitionIn={Array []}
466+
transitionOut={Array []}
457467
>
458468
<div>
459469
Slide Content
@@ -481,6 +491,8 @@ exports[`<Presenter /> should render with notes when slides have them. 1`] = `
481491
slideIndex={2}
482492
transition={Array []}
483493
transitionDuration={0}
494+
transitionIn={Array []}
495+
transitionOut={Array []}
484496
>
485497
<div>
486498
Slide Content

src/components/export.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ export default class Export extends Component {
2222
export: this.props.route.params.indexOf('export') !== -1,
2323
print: this.props.route.params.indexOf('print') !== -1,
2424
transition: [],
25+
transitionIn: [],
26+
transitionOut: [],
2527
transitionDuration: 0
2628
});
2729
});

src/components/presenter.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ export default class Presenter extends Component {
6363
slideIndex,
6464
lastSlideIndex,
6565
transition: [],
66+
transitionIn: [],
67+
transitionOut: [],
6668
transitionDuration: 0,
6769
presenterStyle,
6870
});
@@ -83,6 +85,8 @@ export default class Presenter extends Component {
8385
slideIndex: slideIndex + 1,
8486
lastSlideIndex,
8587
transition: [],
88+
transitionIn: [],
89+
transitionOut: [],
8690
transitionDuration: 0,
8791
presenterStyle,
8892
appearOff: true,

0 commit comments

Comments
 (0)