11import React , { Component } from 'react' ;
2+ import PropTypes from 'prop-types' ;
23
34import { connect } from 'react-redux' ;
45
@@ -17,16 +18,16 @@ const TAB_RESULTS = 2;
1718class CodeContainer extends Component {
1819
1920 static propTypes = {
20- code : React . PropTypes . string ,
21- obfuscatedCode : React . PropTypes . string ,
22- pending : React . PropTypes . bool ,
23- hasResults : React . PropTypes . bool ,
24- onCodeChange : React . PropTypes . func ,
25- onObfuscateClick : React . PropTypes . func ,
26- onDownloadCodeClick : React . PropTypes . func ,
27- onDownloadSourceMapClick : React . PropTypes . func ,
28- hasSourceMap : React . PropTypes . bool ,
29- hasObfuscatedCode : React . PropTypes . bool ,
21+ code : PropTypes . string ,
22+ obfuscatedCode : PropTypes . string ,
23+ pending : PropTypes . bool ,
24+ hasResults : PropTypes . bool ,
25+ onCodeChange : PropTypes . func ,
26+ onObfuscateClick : PropTypes . func ,
27+ onDownloadCodeClick : PropTypes . func ,
28+ onDownloadSourceMapClick : PropTypes . func ,
29+ hasSourceMap : PropTypes . bool ,
30+ hasObfuscatedCode : PropTypes . bool ,
3031 } ;
3132
3233 constructor ( props ) {
@@ -151,7 +152,7 @@ class CodeContainer extends Component {
151152 return (
152153 < div >
153154
154- < div className = "ui top attached tabular menu" >
155+ < div className = "ui top attached stackable three item menu" >
155156 < Title active = { tabIndex === TAB_CODE } onClick = { ( ) => this . onTabClick ( TAB_CODE ) } > Copy & Paste JavaScript Code </ Title >
156157 < Title active = { tabIndex === TAB_UPLOAD } onClick = { ( ) => this . onTabClick ( TAB_UPLOAD ) } > Upload JavaScript Files</ Title >
157158 < Title active = { tabIndex === TAB_RESULTS } onClick = { ( ) => this . onTabClick ( TAB_RESULTS ) } > Output</ Title >
@@ -250,8 +251,8 @@ const Pane = (props) => {
250251}
251252
252253Pane . propTypes = {
253- active : React . PropTypes . bool . isRequired ,
254- children : React . PropTypes . node . isRequired ,
254+ active : PropTypes . bool . isRequired ,
255+ children : PropTypes . node . isRequired ,
255256}
256257
257258
@@ -265,7 +266,7 @@ const Title = (props) => {
265266}
266267
267268Title . propTypes = {
268- active : React . PropTypes . bool . isRequired ,
269- children : React . PropTypes . node . isRequired ,
270- onClick : React . PropTypes . func . isRequired ,
269+ active : PropTypes . bool . isRequired ,
270+ children : PropTypes . node . isRequired ,
271+ onClick : PropTypes . func . isRequired ,
271272}
0 commit comments