File tree 6 files changed +13
-8
lines changed
6 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -44,4 +44,4 @@ ReactJS based Presentation Library
44
44
45
45
## FAQ
46
46
47
- @TODO
47
+ @TODO
Original file line number Diff line number Diff line change 2
2
3
3
const args = require ( './args' ) ;
4
4
const actions = require ( './actions' ) ;
5
- var path = require ( 'path' ) ;
6
5
7
6
const main = ( ) =>
8
7
Promise . resolve ( )
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ const TestJs = () => (
12
12
< Slide >
13
13
< p > Slide 3! </ p >
14
14
< SlideElementWrapper elementNum = { 0 } >
15
- < div > Hey, just one "animated" slide element here</ div >
15
+ < div > { ` Hey, just one "animated" slide element here` } </ div >
16
16
</ SlideElementWrapper >
17
17
</ Slide >
18
18
< Slide >
19
- < p > I'm a static slide element that should always show</ p >
20
- < p > This means that we don't need a SlideElementWrapper</ p >
19
+ < p > { ` I'm a static slide element that should always show` } </ p >
20
+ < p > { ` This means that we don't need a SlideElementWrapper` } </ p >
21
21
< SlideElementWrapper elementNum = { 0 } >
22
22
< p slide-element = "true" > ZERO Slide 4 x 3! </ p >
23
23
</ SlideElementWrapper >
@@ -27,7 +27,7 @@ const TestJs = () => (
27
27
< SlideElementWrapper elementNum = { 2 } >
28
28
< p slide-element = "true" > TWO Slide 4 x 3! </ p >
29
29
</ SlideElementWrapper >
30
- < p > I'm also a static non-animated "slide element"!</ p >
30
+ < p > { ` I'm also a static non-animated "slide element"!` } </ p >
31
31
</ Slide >
32
32
< div > HEY PHIL. YOU DOUBTED US???</ div >
33
33
</ Deck >
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
+ import PropTypes from 'prop-types' ;
2
3
3
4
const Test = ( { height } ) => {
4
5
return < div style = { { height, width : '100%' , backgroundColor : 'yellow' } } /> ;
5
6
} ;
6
7
8
+ Test . propTypes = {
9
+ height : PropTypes . number . isRequired
10
+ } ;
11
+
7
12
export default Test ;
Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ Deck.propTypes = {
108
108
animationsWhenGoingBack : PropTypes . bool . isRequired ,
109
109
children : PropTypes . node . isRequired ,
110
110
keyboardControls : PropTypes . oneOf ( [ 'arrows' , 'space' ] ) ,
111
- loop : PropTypes . bool . isRequired
111
+ loop : PropTypes . bool . isRequired ,
112
+ style : PropTypes . object
112
113
} ;
113
114
114
115
Deck . defaultProps = {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { SlideContext } from '../hooks/useSlide';
10
10
*
11
11
* It is currently using useSpring but ideally we will be able to switch
12
12
* to whatever react-spring hook a user desires!
13
- *
13
+ *
14
14
* Note: Immediate is a React-Spring property that we pass to the animations
15
15
* essentially it skips animations.
16
16
*/
You can’t perform that action at this time.
0 commit comments