Block menu implementation

This commit is contained in:
Cássio Zen
2016-08-05 13:19:31 -03:00
parent 2334862083
commit baf388039e
18 changed files with 288 additions and 103 deletions

View File

@ -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 = {