Block menu implementation
This commit is contained in:
@ -6,6 +6,7 @@ const availableIcons = [
|
||||
'bold', 'italic', 'list', 'font', 'text-height', 'text-width', 'align-left', 'align-center', 'align-right',
|
||||
'align-justify', 'indent-left', 'indent-right', 'list-bullet', 'list-numbered', 'strike', 'underline', 'table',
|
||||
'superscript', 'subscript', 'header', 'h1', 'h2', 'paragraph', 'link', 'unlink', 'quote-left', 'quote-right', 'code',
|
||||
'picture','video',
|
||||
// Entypo
|
||||
'note', 'note-beamed',
|
||||
'music',
|
||||
@ -15,8 +16,8 @@ const availableIcons = [
|
||||
'heart', 'heart-empty',
|
||||
'star', 'star-empty',
|
||||
'user', 'users', 'user-add',
|
||||
'video',
|
||||
'picture',
|
||||
'video-alt',
|
||||
'picture-alt',
|
||||
'camera',
|
||||
'layout',
|
||||
'menu',
|
||||
@ -196,8 +197,10 @@ const iconPropType = (props, propName) => {
|
||||
}
|
||||
};
|
||||
|
||||
export default function Icon({ style, className = '', type }) {
|
||||
return <span className={`${styles.root} ${styles[type]} ${className}`} style={style}/>;
|
||||
const noop = function() {};
|
||||
|
||||
export default function Icon({ style, className = '', type, onClick = noop}) {
|
||||
return <span className={`${styles.root} ${styles[type]} ${className}`} style={style} onClick={onClick} />;
|
||||
}
|
||||
|
||||
Icon.propTypes = {
|
||||
|
Reference in New Issue
Block a user