mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
follow injectIntl convention
wrap the createClass with injectIntl to be consistent with other uses in www
This commit is contained in:
parent
b48411a8e4
commit
8b055d894c
1 changed files with 3 additions and 4 deletions
|
@ -14,7 +14,7 @@ var SubNavigation = require('../../components/subnavigation/subnavigation.jsx');
|
|||
require('./download.scss');
|
||||
require('../../components/forms/button.scss');
|
||||
|
||||
var Download = React.createClass({
|
||||
var Download = injectIntl(React.createClass({
|
||||
type: 'Download',
|
||||
getInitialState: function () {
|
||||
return {
|
||||
|
@ -240,7 +240,6 @@ var Download = React.createClass({
|
|||
</div>
|
||||
);
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
||||
var IntlDownload = injectIntl(Download);
|
||||
render(<Page><IntlDownload /></Page>, document.getElementById('app'));
|
||||
render(<Page><Download /></Page>, document.getElementById('app'));
|
||||
|
|
Loading…
Reference in a new issue