From 4e101afb49c1bd60078032f073b8ec983fa75b6a Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Fri, 5 Feb 2016 22:27:14 +0100 Subject: [PATCH] [Toolbar] Fix the example after removing the deprecated code --- .../components/Toolbar/ExampleSimple.jsx | 76 +++++++++++-------- 1 file changed, 44 insertions(+), 32 deletions(-) diff --git a/docs/src/app/components/pages/components/Toolbar/ExampleSimple.jsx b/docs/src/app/components/pages/components/Toolbar/ExampleSimple.jsx index a5a2dcf235b476..dff2a85f21030f 100644 --- a/docs/src/app/components/pages/components/Toolbar/ExampleSimple.jsx +++ b/docs/src/app/components/pages/components/Toolbar/ExampleSimple.jsx @@ -11,36 +11,48 @@ import ToolbarGroup from 'material-ui/lib/toolbar/toolbar-group'; import ToolbarSeparator from 'material-ui/lib/toolbar/toolbar-separator'; import ToolbarTitle from 'material-ui/lib/toolbar/toolbar-title'; -const ToolbarExamplesSimple = () => ( - - - - - - - - - - - - - - - - - - - } - > - - - - - - - -); +export default class ToolbarExamplesSimple extends React.Component { -export default ToolbarExamplesSimple; + constructor(props) { + super(props); + this.state = { + value: 3, + }; + } + + handleChange = (event, index, value) => this.setState({value}); + + render() { + return ( + + + + + + + + + + + + + + + + + + + } + > + + + + + + + + ); + } +}