diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-11-23 10:52:52 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-11-23 12:11:11 -0500 |
commit | 388dc6c89c62133c3c5fd1c3bb5ec0327cf5be6d (patch) | |
tree | 42b0d26b00915c755fe160f775cac26b13c353e0 /web/react/components/rhs_comment.jsx | |
parent | 6016f91358fa81c01de72011bb34c98cf2851751 (diff) | |
download | chat-388dc6c89c62133c3c5fd1c3bb5ec0327cf5be6d.tar.gz chat-388dc6c89c62133c3c5fd1c3bb5ec0327cf5be6d.tar.bz2 chat-388dc6c89c62133c3c5fd1c3bb5ec0327cf5be6d.zip |
Moved show static methods out of modals and into EventHelpers
Diffstat (limited to 'web/react/components/rhs_comment.jsx')
-rw-r--r-- | web/react/components/rhs_comment.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/rhs_comment.jsx b/web/react/components/rhs_comment.jsx index 3e555c85a..7aae5177e 100644 --- a/web/react/components/rhs_comment.jsx +++ b/web/react/components/rhs_comment.jsx @@ -8,13 +8,13 @@ import UserStore from '../stores/user_store.jsx'; import AppDispatcher from '../dispatcher/app_dispatcher.jsx'; import * as Utils from '../utils/utils.jsx'; import Constants from '../utils/constants.jsx'; -import DeletePostModal from './delete_post_modal.jsx'; import FileAttachmentList from './file_attachment_list.jsx'; import * as Client from '../utils/client.jsx'; import * as AsyncClient from '../utils/async_client.jsx'; var ActionTypes = Constants.ActionTypes; import * as TextFormatting from '../utils/text_formatting.jsx'; import twemoji from 'twemoji'; +import * as EventHelpers from '../dispatcher/event_helpers.jsx'; export default class RhsComment extends React.Component { constructor(props) { @@ -115,7 +115,7 @@ export default class RhsComment extends React.Component { <a href='#' role='menuitem' - onClick={() => DeletePostModal.show(post, 0)} + onClick={() => EventHelpers.showDeletePostModal(post, 0)} > {'Delete'} </a> |