Skip to content

Commit 5dfcf4b

Browse files
committed
Small improvements
1 parent d0cd7e9 commit 5dfcf4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/taxonomy/MainTabs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ const MainTabs = () => {
6666
<Tooltip text={ __( 'Back to all taxonomies', 'mb-custom-post-type' ) } position={ 'bottom right' }>
6767
<a className="logo" href={ MBCPT.url }><Logo /></a>
6868
</Tooltip>
69-
<h1>{ ( MBCPT.action == 'add' ) ? __( 'Add Taxonomies', 'mb-custom-post-type' ) : __( 'Edit Taxonomies', 'mb-custom-post-type' ) }</h1>
70-
{ !( MBCPT.action == 'add' ) && <a className="page-title-action" href={ MBCPT.add }>{ __( 'Add New', 'mb-custom-post-type' ) }</a> }
69+
<h1>{ MBCPT.action === 'add' ? __( 'Add Taxonomies', 'mb-custom-post-type' ) : __( 'Edit Taxonomies', 'mb-custom-post-type' ) }</h1>
70+
{ MBCPT.action !== 'add' && <a className="page-title-action" href={ MBCPT.add }>{ __( 'Add New', 'mb-custom-post-type' ) }</a> }
7171
</Flex>
7272
<Flex gap={ 3 } expanded={ false } className="mb-cpt-action">
7373
<input
@@ -117,8 +117,8 @@ const MainTabs = () => {
117117
</Flex>
118118
<input type="hidden" name="post_title" value={ settings.labels.singular_name } />
119119
<input type="hidden" name="content" value={ JSON.stringify( settings ) } />
120-
<input type="hidden" className="post_status" name="post_status" value={ MBCPT.status || 'draft' } />
121-
<input type="hidden" name="messages" className="mb-cpt-messages" value="" />
120+
<input type="hidden" name="post_status" value={ MBCPT.status || 'draft' } />
121+
<input type="hidden" name="messages" value="" />
122122
</>;
123123
};
124124

0 commit comments

Comments
 (0)