11"use strict" ;
2+ var __extends = ( this && this . __extends ) || function ( d , b ) {
3+ for ( var p in b ) if ( b . hasOwnProperty ( p ) ) d [ p ] = b [ p ] ;
4+ function __ ( ) { this . constructor = d ; }
5+ d . prototype = b === null ? Object . create ( b ) : ( __ . prototype = b . prototype , new __ ( ) ) ;
6+ } ;
7+ var __decorate = ( this && this . __decorate ) || function ( decorators , target , key , desc ) {
8+ var c = arguments . length , r = c < 3 ? target : desc === null ? desc = Object . getOwnPropertyDescriptor ( target , key ) : desc , d ;
9+ if ( typeof Reflect === "object" && typeof Reflect . decorate === "function" ) r = Reflect . decorate ( decorators , target , key , desc ) ;
10+ else for ( var i = decorators . length - 1 ; i >= 0 ; i -- ) if ( d = decorators [ i ] ) r = ( c < 3 ? d ( r ) : c > 3 ? d ( target , key , r ) : d ( target , key ) ) || r ;
11+ return c > 3 && r && Object . defineProperty ( target , key , r ) , r ;
12+ } ;
13+ var __metadata = ( this && this . __metadata ) || function ( k , v ) {
14+ if ( typeof Reflect === "object" && typeof Reflect . metadata === "function" ) return Reflect . metadata ( k , v ) ;
15+ } ;
216var React = require ( 'react' ) ;
17+ var react_redux_1 = require ( 'react-redux' ) ;
318var Tabs_1 = require ( 'material-ui/Tabs' ) ;
419var add_1 = require ( 'material-ui/svg-icons/content/add' ) ;
520var pageTabs_1 = require ( './pageTabs' ) ;
@@ -8,9 +23,22 @@ var styles = {
823 marginRight : '400px' ,
924 } ,
1025} ;
11- var TopPanel = function ( _a ) {
12- var tutorial = _a . tutorial ;
13- return ( React . createElement ( Tabs_1 . Tabs , { style : styles . tabs } , pageTabs_1 . default ( tutorial ) , React . createElement ( Tabs_1 . Tab , { icon : React . createElement ( add_1 . default , null ) } ) ) ) ;
14- } ;
26+ var TopPanel = ( function ( _super ) {
27+ __extends ( TopPanel , _super ) ;
28+ function TopPanel ( ) {
29+ _super . apply ( this , arguments ) ;
30+ }
31+ TopPanel . prototype . render = function ( ) {
32+ return ( React . createElement ( Tabs_1 . Tabs , { style : styles . tabs } , pageTabs_1 . default ( this . props . tutorial ) , React . createElement ( Tabs_1 . Tab , { icon : React . createElement ( add_1 . default , null ) } ) ) ) ;
33+ } ;
34+ TopPanel = __decorate ( [
35+ react_redux_1 . connect ( function ( _a ) {
36+ var tutorial = _a . tutorial ;
37+ return { tutorial : tutorial } ;
38+ } ) ,
39+ __metadata ( 'design:paramtypes' , [ ] )
40+ ] , TopPanel ) ;
41+ return TopPanel ;
42+ } ( React . Component ) ) ;
1543Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
1644exports . default = TopPanel ;
0 commit comments