You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I made changes to the client/src/translations/dashboard/index.tsx (by the way, if anyone has time, please review #9910 =) and noticed that the file consisted of almost 600 lines. It's quite difficult to work and maintain such large components. So I had the idea to decompose this file (and others in the client/src/translations/dashboard/). I think it would be logical to divide the files into:
types/interfaces,
components (one file = one component),
helper functions,
styles.
I may start with client/src/translations/dashboard/ and extend similar changes to other sections in the future.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Recently I made changes to the
client/src/translations/dashboard/index.tsx
(by the way, if anyone has time, please review #9910 =) and noticed that the file consisted of almost 600 lines. It's quite difficult to work and maintain such large components. So I had the idea to decompose this file (and others in theclient/src/translations/dashboard/
). I think it would be logical to divide the files into:I may start with
client/src/translations/dashboard/
and extend similar changes to other sections in the future.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions