Sonarqube counts incorrect cognitive complexity for React Functional Components [BUG/NO FUNCTIONALITY]

@arevi , you are right this was postponed for too long, we’ve been caught with other things with higher priority. We will try to handle it in the next cycle.