/*
This file is part of the Juju GUI, which lets users view and manage Juju
environments within a graphical interface (https://launchpad.net/juju-gui).
Copyright (C) 2015 Canonical Ltd.

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License version 3, as published by
the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero
General Public License for more details.

You should have received a copy of the GNU Affero General Public License along
with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

'use strict';

const Spinner = React.createClass({
  displayName: 'Spinner',

  render: function() {
    return (
      <div className="spinner-container">
        <div className="spinner-loading">Loading...</div>
      </div>
    );
  }
});

YUI.add('loading-spinner', function() {
  juju.components.Spinner = Spinner;
}, '0.1.0', {
  requires: []
});

/*
This file is part of the Juju GUI, which lets users view and manage Juju
environments within a graphical interface (https://launchpad.net/juju-gui).
Copyright (C) 2015 Canonical Ltd.

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License version 3, as published by
the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero
General Public License for more details.

You should have received a copy of the GNU Affero General Public License along
with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

'use strict';

class Spinner extends React.Component {
  render() {
    return (
      <div className="spinner-container">
        <div className="spinner-loading">Loading...</div>
      </div>
    );
  }
};

YUI.add('loading-spinner', function() {
  juju.components.Spinner = Spinner;
}, '0.1.0', {
  requires: []
});

Update Spinner to use es6 class.
Update Spinner to use es6 class.
