Skip to content

Commit

Permalink
Components: Cleanup Dashicons component (#17741)
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo authored Oct 3, 2019
1 parent 9494c17 commit 0bef434
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
3 changes: 0 additions & 3 deletions packages/components/src/dashicon/icon-class.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/components/src/dashicon/icon-class.native.js

This file was deleted.

5 changes: 2 additions & 3 deletions packages/components/src/dashicon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ import { Component } from '@wordpress/element';
* Internal dependencies
*/
import { Path, SVG } from '../primitives';
import { getIconClassName } from './icon-class';

export default class Dashicon extends Component {
render() {
const { icon, size = 20, className, ariaPressed, ...extraProps } = this.props;
const { icon, size = 20, className, ...extraProps } = this.props;
let path;

switch ( icon ) {
Expand Down Expand Up @@ -892,7 +891,7 @@ export default class Dashicon extends Component {
return null;
}

const iconClass = getIconClassName( icon, className, ariaPressed );
const iconClass = [ 'dashicon', 'dashicons-' + icon, className ].filter( Boolean ).join( ' ' );

return (
<SVG
Expand Down

0 comments on commit 0bef434

Please sign in to comment.