m-inan / react-upload-gallery

React for Upload Image Gallery. Sorted by drag & drop and Customizable
MIT License
80 stars 44 forks source link

Adjusting default header #7

Closed ppotter100 closed 4 years ago

ppotter100 commented 4 years ago

I love this component! It works really well. The only question I have: is there a way to adjust the height of the default header and remove the default icon? I tried it using the className property and adjusting the rug-handler and rug-handler-icon classes, but I'm unable to make it work. This is not an issue, I know, but wasn't sure where to put it elsewhere.

Thanks a lot!

ppotter100 commented 4 years ago

Solved it by adding: <RUG header={ ({ openDialogue }) => customHeader(openDialogue)} />

with customHeader:

`function customHeader(openDialogue) { return( <>

</>); }`