File tree Expand file tree Collapse file tree
browser/styles/main/HomeContainer/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ articleCount = #999
1414 .userProfileName
1515 color brandColor
1616 font-size 28px
17- padding 6px 0 0 10px
17+ padding 6px 37 px 0 10px
1818 white-space nowrap
1919 text-overflow ellipsis
2020 overflow hidden
Original file line number Diff line number Diff line change 11import React , { PropTypes } from 'react'
2+ import ReactDOM from 'react-dom'
23import store from 'boost/store'
34import { unlockStatus , clearNewArticle } from 'boost/actions'
45
56export default class EditedAlert extends React . Component {
7+ componentDidMount ( ) {
8+ ReactDOM . findDOMNode ( this . refs . no ) . focus ( )
9+ }
10+
611 handleNoButtonClick ( e ) {
712 this . props . close ( )
813 }
@@ -22,8 +27,8 @@ export default class EditedAlert extends React.Component {
2227 < div className = 'message' > Do you really want to leave without finishing?</ div >
2328
2429 < div className = 'control' >
25- < button onClick = { e => this . handleNoButtonClick ( e ) } > < i className = 'fa fa-fw fa-close' /> No</ button >
26- < button onClick = { e => this . handleYesButtonClick ( e ) } className = 'primary' > < i className = 'fa fa-fw fa-check' /> Yes</ button >
30+ < button ref = 'no' onClick = { e => this . handleNoButtonClick ( e ) } > < i className = 'fa fa-fw fa-close' /> No</ button >
31+ < button ref = 'yes' onClick = { e => this . handleYesButtonClick ( e ) } className = 'primary' > < i className = 'fa fa-fw fa-check' /> Yes</ button >
2732 </ div >
2833 </ div >
2934 )
You can’t perform that action at this time.
0 commit comments