Skip to content

Commit

Permalink
Notices: mysites/draft notices/notice -> component/notice
Browse files Browse the repository at this point in the history
  • Loading branch information
artpi authored and mtias committed Dec 1, 2015
1 parent 374dad7 commit 14924a9
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions client/my-sites/draft/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ var React = require( 'react/addons' ),
*/
var CompactCard = require( 'components/card/compact' ),
Gridicon = require( 'components/gridicon' ),
Notice = require( 'notices/notice' ),
Notice = require( 'components/notice' ),
NoticeAction = require( 'notices/arrow-link' ),
SiteIcon = require( 'components/site-icon' ),
PostRelativeTimeStatus = require( 'my-sites/post-relative-time-status' ),
PopoverMenu = require( 'components/popover/menu' ),
Expand Down Expand Up @@ -214,14 +215,19 @@ module.exports = React.createClass( {

showStatusChange: function() {
if ( this.props.post.status === 'publish' ) {
return <Notice isCompact
return (
<Notice isCompact = { true }
status="is-success"
text={ 'Post successfully published.' }
button={ 'View' }
href={ this.props.post.URL }
showDismiss={ false } />;
showDismiss={ false }>
<NoticeAction href={ this.props.post.URL }>
{ 'View' }
</NoticeAction>
</Notice>
);
} else if ( this.state.hasError ) {
return <Notice isCompact
return <Notice isCompact = { true }
status="is-error"
text={ 'There was a problem.' }
showDismiss={ false } />;
Expand Down

0 comments on commit 14924a9

Please sign in to comment.