Invalid Hook Call Error

Error: Invalid hook call. is being displayed.

The following section is highlighted as shown in screenshot.