Skip to content

Commit

Permalink
Rename the TemplateValidationNotice component
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Feb 27, 2018
1 parent 0402ac0 commit 26488c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions editor/components/editor-notices/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import { NoticeList } from '@wordpress/components';
*/
import { removeNotice } from '../../store/actions';
import { getNotices } from '../../store/selectors';
import TemplateNotice from '../template-notice';
import TemplateValidationNotice from '../template-validation-notice';

function EditorNotices( props ) {
return (
<NoticeList { ...props }>
<TemplateNotice />
<TemplateValidationNotice />
</NoticeList>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import './style.scss';
import { isValidTemplate } from '../../store/selectors';
import { setTemplateValidity, synchronizeTemplate } from '../../store/actions';

function TemplateNotice( { isValid, ...props } ) {
function TemplateValidationNotice( { isValid, ...props } ) {
if ( isValid ) {
return null;
}
Expand All @@ -29,7 +29,7 @@ function TemplateNotice( { isValid, ...props } ) {
};

return (
<Notice className="editor-template-notice" isDismissible={ false } status="warning">
<Notice className="editor-template-validation-notice" isDismissible={ false } status="warning">
<p>{ __( 'The content of your post doesn\'t match the template assigned to your post type.' ) }</p>
<div>
<Button className="button" onClick={ props.resetTemplateValidity }>{ __( 'Keep it as is' ) }</Button>
Expand All @@ -47,4 +47,4 @@ export default connect(
resetTemplateValidity: () => setTemplateValidity( true ),
synchronizeTemplate,
}
)( TemplateNotice );
)( TemplateValidationNotice );
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.editor-template-notice {
.editor-template-validation-notice {
display: flex;
justify-content: space-between;
align-items: center;
Expand Down

0 comments on commit 26488c5

Please sign in to comment.