File tree 5 files changed +36
-36
lines changed
5 files changed +36
-36
lines changed Original file line number Diff line number Diff line change 1
- import React from 'react'
2
- import PurpleAppBar from './PurpleAppBar.js' // AppBar with simple overrides
3
- import SuccessButton from './SuccessButton.js' // A button with complex overrides
4
- import { Button } from 'react-toolbox/lib/button' // Bundled component import
1
+ import React from 'react' ;
2
+ import PurpleAppBar from './PurpleAppBar.js' ; // AppBar with simple overrides
3
+ import SuccessButton from './SuccessButton.js' ; // A button with complex overrides
4
+ import { Button } from 'react-toolbox/lib/button' ; // Bundled component import
5
5
6
6
const App = ( ) => (
7
7
< div >
@@ -11,6 +11,6 @@ const App = () => (
11
11
< Button label = 'Primary Button' primary />
12
12
</ section >
13
13
</ div >
14
- )
14
+ ) ;
15
15
16
- export default App
16
+ export default App ;
Original file line number Diff line number Diff line change 1
- import React , { PropTypes } from 'react'
2
- import { AppBar } from 'react-toolbox/lib/app_bar'
3
- import Logo from './Logo.js'
4
- import theme from './PurpleAppBar.css'
1
+ import React , { PropTypes } from 'react' ;
2
+ import { AppBar } from 'react-toolbox/lib/app_bar' ;
3
+ import Logo from './Logo.js' ;
4
+ import theme from './PurpleAppBar.css' ;
5
5
6
6
const PurpleAppBar = ( { children, ...other } ) => (
7
7
< AppBar { ...other } theme = { theme } >
8
8
< Logo /> App Example
9
9
{ children }
10
10
</ AppBar >
11
- )
11
+ ) ;
12
12
13
13
PurpleAppBar . propTypes = {
14
14
children : PropTypes . node
15
- }
15
+ } ;
16
16
17
- export default PurpleAppBar
17
+ export default PurpleAppBar ;
Original file line number Diff line number Diff line change 1
- import React from 'react'
2
- import { Button } from 'react-toolbox/lib/button'
3
- import theme from './SuccessButton.css'
1
+ import React from 'react' ;
2
+ import { Button } from 'react-toolbox/lib/button' ;
3
+ import theme from './SuccessButton.css' ;
4
4
5
- const SuccessButton = ( props ) => < Button { ...props } theme = { theme } />
6
- export default SuccessButton
5
+ const SuccessButton = ( props ) => < Button { ...props } theme = { theme } /> ;
6
+ export default SuccessButton ;
Original file line number Diff line number Diff line change 1
- import React from 'react'
2
- import ReactDOM from 'react-dom'
3
- import App from './component/App'
4
- import { AppContainer } from 'react-hot-loader'
5
- import { overrideComponentTypeChecker } from 'react-toolbox'
1
+ import React from 'react' ;
2
+ import ReactDOM from 'react-dom' ;
3
+ import App from './component/App' ;
4
+ import { AppContainer } from 'react-hot-loader' ;
5
+ import { overrideComponentTypeChecker } from 'react-toolbox' ;
6
6
7
- const rootEl = document . getElementById ( 'app' )
7
+ const rootEl = document . getElementById ( 'app' ) ;
8
8
9
9
const render = ( ) => {
10
10
ReactDOM . render (
11
11
< AppContainer >
12
12
< App />
13
13
</ AppContainer > ,
14
14
rootEl
15
- )
16
- }
15
+ ) ;
16
+ } ;
17
17
18
18
if ( process . env . NODE_ENV !== 'production' ) {
19
19
overrideComponentTypeChecker ( ( classType , reactElement ) => (
20
20
reactElement && (
21
- reactElement . type === classType ||
22
- reactElement . type . name === classType . displayName
21
+ reactElement . type === classType
22
+ || reactElement . type . name === classType . displayName
23
23
)
24
- ) )
24
+ ) ) ;
25
25
if ( module . hot ) {
26
- module . hot . accept ( './component/App' , render )
26
+ module . hot . accept ( './component/App' , render ) ;
27
27
}
28
28
}
29
29
30
- render ( )
30
+ render ( ) ;
You can’t perform that action at this time.
0 commit comments