0

I have a component which will return a button element, and the onClick handler will dispatch a redux action:
This is the button component :
const UxMenuButton = ({children, currentView, defaultTab = false, imgUrl = null, onClick, type = 'submit'}) => {
return (
<button className={`ux-btn ...