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? +
+
+ + +
+
+ ); + } +});