From 8b055d894c73599b6853babeacbc3528ed4105e8 Mon Sep 17 00:00:00 2001 From: chrisgarrity Date: Tue, 19 Sep 2017 11:15:02 -0400 Subject: [PATCH] follow injectIntl convention wrap the createClass with injectIntl to be consistent with other uses in www --- src/views/download/download.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/download/download.jsx b/src/views/download/download.jsx index fe774218d..2413a2227 100644 --- a/src/views/download/download.jsx +++ b/src/views/download/download.jsx @@ -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({ ); } -}); +})); -var IntlDownload = injectIntl(Download); -render(, document.getElementById('app')); +render(, document.getElementById('app'));