- Hand crafted with love by the engineers at Call-Em-All and our
+ Hand crafted with love by the engineers at Call-Em-All and our
awesome contributors.
{githubButton}
@@ -51,12 +52,16 @@ var Master = React.createClass({
);
- },
+ }
- _onMenuIconButtonTouchTap: function() {
+ _onMenuIconButtonTouchTap() {
this.refs.leftNav.toggle();
}
-
-});
-module.exports = Master;
\ No newline at end of file
+}
+
+Master.contextTypes = {
+ router: React.PropTypes.func
+};
+
+module.exports = Master;
diff --git a/docs/src/app/components/pages/components.jsx b/docs/src/app/components/pages/components.jsx
index 311af3b6030f88..e2573bdd7a9d0a 100644
--- a/docs/src/app/components/pages/components.jsx
+++ b/docs/src/app/components/pages/components.jsx
@@ -1,9 +1,9 @@
var React = require('react');
var PageWithNav = require('./page-with-nav.jsx');
-var Components = React.createClass({
+class Components extends React.Component {
- render: function() {
+ render() {
var menuItems = [
{ route: 'buttons', text: 'Buttons'},
{ route: 'date-picker', text: 'Date Picker'},
@@ -27,6 +27,6 @@ var Components = React.createClass({
);
}
-});
+}
-module.exports = Components;
\ No newline at end of file
+module.exports = Components;
diff --git a/docs/src/app/components/pages/components/buttons.jsx b/docs/src/app/components/pages/components/buttons.jsx
index e956eb20b265c8..bf280e6d549e19 100644
--- a/docs/src/app/components/pages/components/buttons.jsx
+++ b/docs/src/app/components/pages/components/buttons.jsx
@@ -1,24 +1,21 @@
var React = require('react');
var mui = require('mui');
-var FlatButton = mui.FlatButton;
-var FloatingActionButton = mui.FloatingActionButton;
-var RaisedButton = mui.RaisedButton;
-var FontIcon = mui.FontIcon;
var ComponentDoc = require('../../component-doc.jsx');
-var ButtonPage = React.createClass({
+var {FlatButton, FloatingActionButton, RaisedButton, FontIcon} = mui;
+class ButtonPage extends React.Component {
/** Styles */
- _buttonLabel: function() {
+ _buttonLabel() {
return {
padding: '0px 16px 0px 8px',
}
- },
+ }
- render: function() {
+ render() {
- var code =
+ var code =
'//Flat Buttons\n' +
'\n' +
'\n' +
@@ -34,7 +31,7 @@ var ButtonPage = React.createClass({
' \n' +
'\n' +
'\n\n' +
- '//Raised Buttons\n' +
+ '//Raised Buttons\n' +
'\n' +
'\n' +
'\n' +
@@ -144,8 +141,8 @@ var ButtonPage = React.createClass({
{
name: 'iconClassName',
type: 'string',
- header: 'optional',
- desc: 'The icon within the FloatingActionButton is a FontIcon component. This property ' +
+ header: 'optional',
+ desc: 'The icon within the FloatingActionButton is a FontIcon component. This property ' +
'is the classname of the icon to be displayed inside the button. An alternative ' +
'to adding an iconClassName would be to manually insert a FontIcon component or ' +
'custom SvgIcon component or as a child of FloatingActionButton.'
@@ -274,6 +271,6 @@ var ButtonPage = React.createClass({
);
}
-});
+}
-module.exports = ButtonPage;
\ No newline at end of file
+module.exports = ButtonPage;
diff --git a/docs/src/app/components/pages/components/dialog.jsx b/docs/src/app/components/pages/components/dialog.jsx
index cf9085467f2406..c49861d1bfcffd 100644
--- a/docs/src/app/components/pages/components/dialog.jsx
+++ b/docs/src/app/components/pages/components/dialog.jsx
@@ -5,11 +5,19 @@ var FlatButton = mui.FlatButton;
var RaisedButton = mui.RaisedButton;
var ComponentDoc = require('../../component-doc.jsx');
-var DialogPage = React.createClass({
+class DialogPage extends React.Component {
+
+ constructor() {
+ super();
+ this._handleCustomDialogCancel = this._handleCustomDialogCancel.bind(this);
+ this._handleCustomDialogSubmit = this._handleCustomDialogSubmit.bind(this);
+ this.handleCustomDialogTouchTap = this.handleCustomDialogTouchTap.bind(this);
+ this.handleStandardDialogTouchTap = this.handleStandardDialogTouchTap.bind(this);
+ }
- render: function() {
+ render() {
- var code =
+ var code =
'//Standard Actions\n' +
'var standardActions = [\n' +
' { text: \'Cancel\' },\n' +
@@ -140,24 +148,24 @@ var DialogPage = React.createClass({
);
- },
+ }
- _handleCustomDialogCancel: function() {
+ _handleCustomDialogCancel() {
this.refs.customDialog.dismiss();
- },
+ }
- _handleCustomDialogSubmit: function() {
+ _handleCustomDialogSubmit() {
this.refs.customDialog.dismiss();
- },
+ }
- handleCustomDialogTouchTap: function() {
+ handleCustomDialogTouchTap() {
this.refs.customDialog.show();
- },
+ }
- handleStandardDialogTouchTap: function() {
+ handleStandardDialogTouchTap() {
this.refs.standardDialog.show();
}
-});
+}
-module.exports = DialogPage;
\ No newline at end of file
+module.exports = DialogPage;
diff --git a/docs/src/app/components/pages/components/drop-down-menu.jsx b/docs/src/app/components/pages/components/drop-down-menu.jsx
index 3a93e2143511e0..29fa7b235d175d 100644
--- a/docs/src/app/components/pages/components/drop-down-menu.jsx
+++ b/docs/src/app/components/pages/components/drop-down-menu.jsx
@@ -3,9 +3,9 @@ var mui = require('mui');
var DropDownMenu = mui.DropDownMenu;
var ComponentDoc = require('../../component-doc.jsx');
-var DropDownMenuPage = React.createClass({
+class DropDownMenuPage extends React.Component {
- render: function() {
+ render() {
var menuItems = [
{ payload: '1', text: 'Never' },
@@ -15,7 +15,7 @@ var DropDownMenuPage = React.createClass({
{ payload: '5', text: 'Weekly' },
];
- var code =
+ var code =
"var menuItems = [\n" +
" { payload: '1', text: 'Never' },\n" +
" { payload: '2', text: 'Every Night' },\n" +
@@ -70,6 +70,6 @@ var DropDownMenuPage = React.createClass({
);
}
-});
+}
-module.exports = DropDownMenuPage;
\ No newline at end of file
+module.exports = DropDownMenuPage;
diff --git a/docs/src/app/components/pages/components/icon-buttons.jsx b/docs/src/app/components/pages/components/icon-buttons.jsx
index d377201d518c2e..c5b02ba7bbd8af 100644
--- a/docs/src/app/components/pages/components/icon-buttons.jsx
+++ b/docs/src/app/components/pages/components/icon-buttons.jsx
@@ -7,9 +7,9 @@ var ActionGrade = require('../../svg-icons/action-grade.jsx');
var ActionHome = require('../../svg-icons/action-home.jsx');
var FontIcon = mui.FontIcon;
-var IconButtonsPage = React.createClass({
+class IconButtonsPage extends React.Component {
- render: function() {
+ render() {
var code =
'//Method 1: muidocs-icon-github is defined in a style sheet.\n' +
@@ -24,32 +24,34 @@ var IconButtonsPage = React.createClass({
' \n' +
'';
- var desc =
- This component generates a button element and all props.
- Also, focus styles will happen on tab but not on click.
- There are three ways to add an icon:
-
-
-
- For stylesheets: Set the prop "iconClassName" to the
- classname for you icon.
-
-
- For svg icons: Insert the svg component as a child of icon
- buttons. This is the method we are using.
- View our source to see how ActionGrade was created
- using mui.SvgIcon.
-
-
- Alternative: You can also insert a
- FontIcon component as a child of IconButton. This is
- similiar to how the iconClassName prop from method 1 is
- handled.
-
-
-
;
+ var desc = (
+
+ This component generates a button element and all props.
+ Also, focus styles will happen on tab but not on click.
+ There are three ways to add an icon:
+
+
+
+ For stylesheets: Set the prop "iconClassName" to the
+ classname for you icon.
+
+
+ For svg icons: Insert the svg component as a child of icon
+ buttons. This is the method we are using.
+ View our source to see how ActionGrade was created
+ using mui.SvgIcon.
+
+
+ Alternative: You can also insert a
+ FontIcon component as a child of IconButton. This is
+ similiar to how the iconClassName prop from method 1 is
+ handled.
+
+
+
+ );
var componentInfo = [
{
@@ -59,7 +61,7 @@ var IconButtonsPage = React.createClass({
name: 'iconClassName',
type: 'string',
header: 'optional',
- desc: 'If you are using a stylesheet for your icons, enter the ' +
+ desc: 'If you are using a stylesheet for your icons, enter the ' +
'class name for the icon to be used here.'
},
{
@@ -97,9 +99,9 @@ var IconButtonsPage = React.createClass({
);
-
+
}
-});
+}
-module.exports = IconButtonsPage;
\ No newline at end of file
+module.exports = IconButtonsPage;
diff --git a/docs/src/app/components/pages/components/icons.jsx b/docs/src/app/components/pages/components/icons.jsx
index 6c072ac8a3563c..c5f9835261a683 100644
--- a/docs/src/app/components/pages/components/icons.jsx
+++ b/docs/src/app/components/pages/components/icons.jsx
@@ -4,13 +4,13 @@ var FontIcon = mui.FontIcon;
var ComponentDoc = require('../../component-doc.jsx');
var ActionHome = require('../../svg-icons/action-home.jsx');
-var FontIconPage = React.createClass({
+class FontIconPage extends React.Component {
- render: function() {
+ render() {
var fontIconCode =
'';
- var svgIconCode =
+ var svgIconCode =
'/** action-home.jsx */\n' +
'var React = require(\'react\');\n' +
'var mui = require(\'mui\');\n' +
@@ -31,26 +31,28 @@ var FontIconPage = React.createClass({
'\n' +
'...';
- var fontIconDesc =
-
- This component will render any icon defined in any style sheets included in your
- project. We are using Google's Material Design
- Icons for our documentation site along with some custom icons. You can use
- sites like IcoMoon for
- generating custom font files. To use FontIcons, add your stylesheet to your project
- and reference the icon's className in the "className" prop.
-
;
+ var fontIconDesc = (
+
+ This component will render any icon defined in any style sheets included in your
+ project. We are using Google's Material Design
+ Icons for our documentation site along with some custom icons. You can use
+ sites like IcoMoon for
+ generating custom font files. To use FontIcons, add your stylesheet to your project
+ and reference the icon's className in the "className" prop.
+
+ );
- var svgIconDesc =
-
- Alternatively, it is possible to include svg icons using mui.SvgIcon to
- create a custom svg component. Here we are creating the ActionHome
- SvgIcon for this docs site, and using it in some seperate component.
- Custom SvgIcon components can be included as children for other Material
- UI components that use icons such as IconButtons.
-
;
+ var svgIconDesc = (
+
+ Alternatively, it is possible to include svg icons using mui.SvgIcon to
+ create a custom svg component. Here we are creating the ActionHome
+ SvgIcon for this docs site, and using it in some seperate component.
+ Custom SvgIcon components can be included as children for other Material
+ UI components that use icons such as IconButtons.
+
+ );
var componentInfo = [];
@@ -74,6 +76,6 @@ var FontIconPage = React.createClass({
);
}
-});
+}
-module.exports = FontIconPage;
\ No newline at end of file
+module.exports = FontIconPage;
diff --git a/docs/src/app/components/pages/components/left-nav.jsx b/docs/src/app/components/pages/components/left-nav.jsx
index 50318c4d5f38a5..04ec7d13bcac51 100644
--- a/docs/src/app/components/pages/components/left-nav.jsx
+++ b/docs/src/app/components/pages/components/left-nav.jsx
@@ -5,15 +5,19 @@ var LeftNav = mui.LeftNav;
var RaisedButton = mui.RaisedButton;
var ComponentDoc = require('../../component-doc.jsx');
-var LeftNavPage = React.createClass({
+class LeftNavPage extends React.Component {
- getInitialState: function() {
- return {
+ constructor() {
+ super();
+ this._showLeftNavClick = this._showLeftNavClick.bind(this);
+ this._toggleDockedLeftNavClick = this._toggleDockedLeftNavClick.bind(this);
+
+ this.state = {
isDocked: false
};
- },
+ }
- render: function() {
+ render() {
var menuItems = [
{ route: 'get-started', text: 'Get Started' },
@@ -25,7 +29,7 @@ var LeftNavPage = React.createClass({
{ type: MenuItem.Types.LINK, payload: 'https://www.google.com', text: 'Disabled Link', disabled: true }
];
- var code =
+ var code =
'menuItems = [\n' +
' { route: \'get-started\', text: \'Get Started\' },\n' +
' { route: \'css-framework\', text: \'CSS Framework\' },\n' +
@@ -128,20 +132,20 @@ var LeftNavPage = React.createClass({
);
-
- },
- _showLeftNavClick: function() {
+ }
+
+ _showLeftNavClick() {
this.refs.leftNav.toggle();
- },
+ }
- _toggleDockedLeftNavClick: function() {
+ _toggleDockedLeftNavClick() {
this.refs.dockedLeftNav.toggle();
this.setState({
isDocked: !this.state.isDocked
});
}
-});
+}
-module.exports = LeftNavPage;
\ No newline at end of file
+module.exports = LeftNavPage;
diff --git a/docs/src/app/components/pages/components/paper.jsx b/docs/src/app/components/pages/components/paper.jsx
index f4f9149ba73c98..f92907f8c66251 100644
--- a/docs/src/app/components/pages/components/paper.jsx
+++ b/docs/src/app/components/pages/components/paper.jsx
@@ -3,9 +3,9 @@ var mui = require('mui');
var Paper = mui.Paper;
var ComponentDoc = require('../../component-doc.jsx');
-var PaperPage = React.createClass({
+class PaperPage extends React.Component {
- render: function() {
+ render() {
var code = [
'//Rounded Corners',
@@ -81,7 +81,7 @@ var PaperPage = React.createClass({
type: 'string',
header: 'optional',
desc: 'Similiar to innerClassName. Overrides the inline-style of ' +
- 'the inner div.'
+ 'the inner div.'
},
{
name: 'rounded',
@@ -183,6 +183,6 @@ var PaperPage = React.createClass({
);
}
-});
+}
module.exports = PaperPage;
diff --git a/docs/src/app/components/pages/components/sliders.jsx b/docs/src/app/components/pages/components/sliders.jsx
index 499c0ee09325a8..c0c26ca590f7e6 100644
--- a/docs/src/app/components/pages/components/sliders.jsx
+++ b/docs/src/app/components/pages/components/sliders.jsx
@@ -3,13 +3,13 @@ var mui = require('mui');
var Slider = mui.Slider;
var ComponentDoc = require('../../component-doc.jsx');
-var SlidersPage = React.createClass({
+class SlidersPage extends React.Component {
- handleMouseDown: function(e){
+ handleMouseDown(e){
console.log('hmd', e);
- },
+ }
- render: function() {
+ render() {
var code =
'// Default\n' +
@@ -32,16 +32,16 @@ var SlidersPage = React.createClass({
componentInfo={componentInfo}>
-
-
-
-
-
+
+
+
+
+
);
}
-});
+}
-module.exports = SlidersPage;
\ No newline at end of file
+module.exports = SlidersPage;
diff --git a/docs/src/app/components/pages/components/snackbar.jsx b/docs/src/app/components/pages/components/snackbar.jsx
index 4752031ae9c8d8..0901bd1f413f79 100644
--- a/docs/src/app/components/pages/components/snackbar.jsx
+++ b/docs/src/app/components/pages/components/snackbar.jsx
@@ -4,13 +4,18 @@ var RaisedButton = mui.RaisedButton;
var Snackbar = mui.Snackbar;
var ComponentDoc = require('../../component-doc.jsx');
-var SnackbarPage = React.createClass({
+class SnackbarPage extends React.Component {
- render: function() {
- var code =
- '\n\n' +
'//Somewhere in our code\n' +
'_handleAction: function() {\n' +
@@ -75,29 +80,29 @@ var SnackbarPage = React.createClass({
code={code}
componentInfo={componentInfo}>
-
-
);
- },
+ }
- _handleClick: function(e) {
+ _handleClick(e) {
this.refs.snackbar.show();
- },
+ }
- _handleAction: function() {
+ _handleAction() {
//We can add more code here! In this example, we'll just include an alert.
alert("We removed the event from your calendar.");
}
-});
+}
module.exports = SnackbarPage;
diff --git a/docs/src/app/components/pages/components/switches.jsx b/docs/src/app/components/pages/components/switches.jsx
index 23c4a90b1341ef..65f391d925aca9 100644
--- a/docs/src/app/components/pages/components/switches.jsx
+++ b/docs/src/app/components/pages/components/switches.jsx
@@ -1,18 +1,15 @@
var React = require('react');
var mui = require('mui');
-var Checkbox = mui.Checkbox;
-var RadioButton = mui.RadioButton;
-var RadioButtonGroup = mui.RadioButtonGroup;
-var Toggle = mui.Toggle;
var CodeExample = require('../../code-example/code-example.jsx');
var ComponentDoc = require('../../component-doc.jsx');
-var RaisedButton = mui.RaisedButton;
-var SwitchesPage = React.createClass({
+var {Checkbox, RadioButton, RadioButtonGroup, Toggle, RaisedButton} = mui;
- render: function() {
+class SwitchesPage extends React.Component {
- var code =
+ render() {
+
+ var code =
'//Checkboxes\n' +
'\n' +
'\n' +
'\n\n' +
'//Radio Buttons\n' +
@@ -53,15 +50,15 @@ var SwitchesPage = React.createClass({
' name="toggleName2"\n' +
' value="toggleValue2"\n' +
' label="auto-pilot"\n' +
- ' defaultToggled={true} />\n' +
+ ' defaultToggled={true} />\n' +
'\n\n';
- var desc = 'These components extend their current input elements (checkbox and radio) and ' +
- 'will support all of its props and events. Checkboxes and Toggles support ' +
+ var desc = 'These components extend their current input elements (checkbox and radio) and ' +
+ 'will support all of its props and events. Checkboxes and Toggles support ' +
'checkedLink';
var componentInfo = [
@@ -90,7 +87,7 @@ var SwitchesPage = React.createClass({
name: 'labelPosition',
type: 'string',
header: 'default:"right"',
- desc: 'Where the label will be placed next to the checkbox. Options include ' +
+ desc: 'Where the label will be placed next to the checkbox. Options include ' +
'"left" and "right" (case-sensitive). Default option is "left".'
},
{
@@ -112,7 +109,7 @@ var SwitchesPage = React.createClass({
{
name: 'setChecked',
header: 'Checkbox.setChecked(newCheckedValue)',
- desc: 'Sets the checkbox to the value of newCheckedValue. This method cannot be used ' +
+ desc: 'Sets the checkbox to the value of newCheckedValue. This method cannot be used ' +
'while "checked" is defined as a property.'
}
]
@@ -147,7 +144,7 @@ var SwitchesPage = React.createClass({
name: 'labelPosition',
type: 'string',
header: 'default:"right"',
- desc: 'Where the label will be placed next to the radio button. Options include ' +
+ desc: 'Where the label will be placed next to the radio button. Options include ' +
'"left" and "right" (case-sensitive). Default option is "left".'
},
{
@@ -171,7 +168,7 @@ var SwitchesPage = React.createClass({
name: 'defaultSelected',
type: 'string',
header: 'optional',
- desc: 'Sets the default radio button to be the one whose value matches ' +
+ desc: 'Sets the default radio button to be the one whose value matches ' +
'defaultSelected (case-sensitive). This will override any individual radio ' +
'button with the defaultChecked or checked property stated.'
},
@@ -185,7 +182,7 @@ var SwitchesPage = React.createClass({
name: 'labelPosition',
type: 'string',
header: 'optional',
- desc: 'Where the label will be placed for all radio buttons. Options include ' +
+ desc: 'Where the label will be placed for all radio buttons. Options include ' +
'"left" and "right" (case-sensitive). This will override any labelPosition ' +
'properties defined for an individual radio button.'
},
@@ -220,7 +217,7 @@ var SwitchesPage = React.createClass({
name: 'onChange',
type: 'function(e, selected)',
header: 'optional',
- desc: 'Callback function that is fired when a radio button has been clicked. Returns ' +
+ desc: 'Callback function that is fired when a radio button has been clicked. Returns ' +
'the event and the value of the radio button that has been selected.'
}
]
@@ -252,7 +249,7 @@ var SwitchesPage = React.createClass({
name: 'labelPosition',
type: 'string',
header: 'default:"left"',
- desc: 'Where the label will be placed next to the toggle switch. Options include ' +
+ desc: 'Where the label will be placed next to the toggle switch. Options include ' +
'"left" and "right" (case-sensitive). Default option is "left".'
},
{
@@ -265,7 +262,7 @@ var SwitchesPage = React.createClass({
name: 'defaultToggled',
type: 'boolean',
header: 'default:false',
- desc: 'The value of the toggle button. Is true when toggle has been turned on. ' +
+ desc: 'The value of the toggle button. Is true when toggle has been turned on. ' +
'False otherwise.'
}
]
@@ -281,7 +278,7 @@ var SwitchesPage = React.createClass({
{
name: 'setToggled',
header: 'Toggle.setToggled(newToggledValue)',
- desc: 'Sets the toggle to the value of newToggledValue. This method cannot be used ' +
+ desc: 'Sets the toggle to the value of newToggledValue. This method cannot be used ' +
'while "checked" is defined as a property.'
}
]
@@ -300,7 +297,7 @@ var SwitchesPage = React.createClass({
];
return (
-
);
- },
+ }
- _getCheckboxExample: function() {
+ _getCheckboxExample() {
return (
@@ -328,14 +325,14 @@ var SwitchesPage = React.createClass({
@@ -343,16 +340,16 @@ var SwitchesPage = React.createClass({
- We recommend that you get started with the React Library before diving into
- material-ui for a better understanding. Should you choose to skip this, don't worry, we'll explain relevant React concepts as
+ We recommend that you get started with the React Library before diving into
+ material-ui for a better understanding. Should you choose to skip this, don't worry, we'll explain relevant React concepts as
they come along.
Installation
- Material-UI is available as an npm package.
+ Material-UI is available as an npm package.
Use browserify and reactify for
dependency management and JSX transformation. The CSS framework is written in Less,
so you'll need to compile that as well. For Sass users, material-ui-sass contains
@@ -107,6 +107,6 @@ var GetStarted = React.createClass({
);
}
-});
+}
module.exports = GetStarted;
diff --git a/docs/src/app/components/pages/home-feature.jsx b/docs/src/app/components/pages/home-feature.jsx
index 42823165ce9afc..9e2289e3afc881 100644
--- a/docs/src/app/components/pages/home-feature.jsx
+++ b/docs/src/app/components/pages/home-feature.jsx
@@ -4,21 +4,19 @@ var React = require('react'),
mui = require('mui'),
Paper = mui.Paper;
-var HomeFeature = React.createClass({
+class HomeFeature extends React.Component {
- propTypes: {
- heading: React.PropTypes.string,
- route: React.PropTypes.string,
- img: React.PropTypes.string
- },
-
- getInitialState: function() {
- return {
- zDepth: 0
+ constructor(props) {
+ super(props);
+ this.state = {
+ zDepth: 0
};
- },
- render: function() {
+ this._onMouseOver = this._onMouseOver.bind(this);
+ this._onMouseOut = this._onMouseOut.bind(this);
+ }
+
+ render() {
return (
@@ -26,20 +24,26 @@ var HomeFeature = React.createClass({
);
- },
+ }
- _onMouseOver: function() {
+ _onMouseOver() {
this.setState({
zDepth: 4
});
- },
+ }
- _onMouseOut: function() {
+ _onMouseOut() {
this.setState({
zDepth: 0
});
}
-});
+}
+
+HomeFeature.propTypes = {
+ heading: React.PropTypes.string,
+ route: React.PropTypes.string,
+ img: React.PropTypes.string
+};
module.exports = HomeFeature;
diff --git a/docs/src/app/components/pages/home.jsx b/docs/src/app/components/pages/home.jsx
index 380e5c5a5701cb..ed1ca82aeccf08 100644
--- a/docs/src/app/components/pages/home.jsx
+++ b/docs/src/app/components/pages/home.jsx
@@ -5,11 +5,14 @@ var RaisedButton = mui.RaisedButton;
var HomeFeature = require('./home-feature.jsx');
var Theme = mui.Styles.Theme;
-var HomePage = React.createClass({
+class HomePage extends React.Component {
- mixins: [Router.Navigation],
+ constructor() {
+ super();
+ this._onDemoClick = this._onDemoClick.bind(this);
+ }
- _raisedButton: function() {
+ _raisedButton() {
return {
label: {
color: Theme.primary1Color,
@@ -23,9 +26,9 @@ var HomePage = React.createClass({
minWidth: 0,
},
}
- },
+ }
- render: function() {
+ render() {
return (
@@ -78,12 +81,16 @@ var HomePage = React.createClass({