Skip to content

Commit

Permalink
Invites: Remove deprecated usage of SimpleNotice
Browse files Browse the repository at this point in the history
  • Loading branch information
lezama committed Dec 1, 2015
1 parent 88bb827 commit 4189d7b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/accept-invite/invite-message/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React from 'react'
/**
* Internal dependencies
*/
import SimpleNotice from 'notices/simple-notice'
import Notice from 'components/notice'
import { dismissInviteAccepted, dismissInviteDeclined } from 'accept-invite/actions'
import store from 'accept-invite/invite-message/store'

Expand Down Expand Up @@ -35,7 +35,7 @@ export default React.createClass( {
return null;
}
return (
<SimpleNotice status="is-success" onClick={ dismissInviteAccepted }>
<Notice status="is-success" onClick={ dismissInviteAccepted }>
<h3 className="invite-message__title">{ this.translate( 'You\'re now a user of: %(site)s', { args: { site: site.slug } } ) }</h3>
<p className="invite-message__intro">
{ this.translate( 'This is your site dashboard where you can write posts and control your site. ' ) }
Expand All @@ -48,16 +48,16 @@ export default React.createClass( {
)
}
</p>
</SimpleNotice>
</Notice>
);
}
if ( declined ) {
return (
<SimpleNotice status="is-success" onClick={ dismissInviteDeclined }>
<Notice status="is-success" onClick={ dismissInviteDeclined }>
<h3>
{ this.translate( 'You declined to join' ) }
</h3>
</SimpleNotice>
</Notice>
);
}
return null;
Expand Down

0 comments on commit 4189d7b

Please sign in to comment.