I am trying to use a function as a prop inside a component and this component is a child of another component. The function works but it is giving me a warning. Can I know w