Skip to content

Commit

Permalink
Merge pull request #4 from kuno1/fix/issue#2
Browse files Browse the repository at this point in the history
Replace deprecated isDefault with isSecondary.
  • Loading branch information
waviaei authored Apr 24, 2024
2 parents 25fcf5f + 9217457 commit 3163a81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/js/icon-inline.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class KunoichiInlineIcon extends React.Component {
<IconSelector handler={ this.classDefined } />
<hr />
<p style={ { textAlign: 'right' } } >
<Button isDefault onClick={ this.modalClose }>
<Button isSecondary onClick={ this.modalClose }>
{ __( 'Cancel' ) }
</Button>
</p>
Expand Down
4 changes: 2 additions & 2 deletions assets/js/icon-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class IconSelector extends React.Component {
<p className="kicon-selector">
{ filtered.map( ( icon ) => {
return (
<Button className="kicon-selector-item" key={ icon.name } isDefault={ true } title={ icon.name } style={ { 'font-family': iconSet.font_family } }
<Button className="kicon-selector-item" key={ icon.name } isSecondary={ true } title={ icon.name } style={ { 'font-family': iconSet.font_family } }
onClick={ () => handler( icon.classes ) } >
<span className={ icon.classes + ' kicon kicon-selector-icon' }></span>
</Button>
Expand All @@ -59,7 +59,7 @@ class IconSelector extends React.Component {
value={ text } placeholder={ __( 'Type to filter...', 'kicon' ) }
onChange={ this.updateTimer } />
<p>
<Button isPrimary={ ! show } isDefault={ show } onClick={ () => this.setState( { show: !show } ) }>
<Button isPrimary={ ! show } isSecondary={ show } onClick={ () => this.setState( { show: !show } ) }>
{ show ? __( 'Hide', 'kicon' ) : __( 'Show All', 'kicon' ) }
</Button>
</p>
Expand Down

0 comments on commit 3163a81

Please sign in to comment.