From e008b5578d0b8af82f66a153902d27ab04b9d0f0 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Mon, 30 Nov 2015 15:23:16 +0000 Subject: [PATCH] Move and merge LogoutPrompt --- .../views/dialogs}/LogoutPrompt.js | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) rename src/{controllers/organisms => components/views/dialogs}/LogoutPrompt.js (59%) diff --git a/src/controllers/organisms/LogoutPrompt.js b/src/components/views/dialogs/LogoutPrompt.js similarity index 59% rename from src/controllers/organisms/LogoutPrompt.js rename to src/components/views/dialogs/LogoutPrompt.js index 5e5011ea97..ed58542a66 100644 --- a/src/controllers/organisms/LogoutPrompt.js +++ b/src/components/views/dialogs/LogoutPrompt.js @@ -13,10 +13,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +var React = require('react'); +var dis = require("../../../dispatcher"); -var dis = require("../../dispatcher"); - -module.exports = { +module.exports = React.createClass({ + displayName: 'LogoutPrompt', logOut: function() { dis.dispatch({action: 'logout'}); if (this.props.onFinished) { @@ -28,6 +29,20 @@ module.exports = { if (this.props.onFinished) { this.props.onFinished(); } - } -}; + }, + + render: function() { + return ( +
+
+ Sign out? +
+
+ + +
+
+ ); + } +});