import React, { PropTypes } from 'react' import ReactDOM from 'react-dom' import store from '../store' import { destroyArticle } from '../actions' export default class DeleteArticleModal extends React.Component { componentDidMount () { ReactDOM.findDOMNode(this.refs.no).focus() } handleNoButtonClick (e) { this.props.close() } handleYesButtonClick (e) { store.dispatch(destroyArticle(this.props.articleKey)) this.props.close() } render () { return (