It works in my system, but when I run pre-commit, I get this error:
23:17 Error: React Hook "useTranslation" is called in function "getLabelInfo" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
I kind of understand the error, but I don't know howw to fix it. Any pointers about fixing it? I've spent hours adding translations to this file and I don't want to lose this work...
I've translated
LabelLikertGroup.tsx
with code like this:It works in my system, but when I run
pre-commit
, I get this error:I kind of understand the error, but I don't know howw to fix it. Any pointers about fixing it? I've spent hours adding translations to this file and I don't want to lose this work...