storybook-eol/react-treebeard

Help Needed....Folder Icon and File Icons Needed

jmandivarapu1 opened this issue · 1 comments

Hi,

I need help in getting the folder and file icons. When I am running the current example I am getting the arrow icons but i need the folder,file icons. If there is a default way to get or any custom method also is fine for me.

Mine:
Screen Shot 2019-05-25 at 8 07 34 PM

Expecting :
Screen Shot 2019-05-25 at 8 09 11 PM

Added this and it worked


const CustomHeader = ({ node, style, prefix }) =>{
  const iconType = node.children ? 'folder' : 'file-text';
  const iconClass = `fa fa-${iconType}`;
  const iconStyle = {marginRight: '5px'};
  return(
      <div style={style.base}>
      <div style={{ ...style.title }}>
      <i className={iconClass} style={iconStyle}/>
       {node.name}
        {/* {`<3 ${node.name.toUpperCase()}`} */}
      </div>
    </div>
  )
  }