How to fix forwardRef render functions accept exactly two parameters: props and ref in React | DevErrors