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
@pkretzschmar, this is part of a larger refactor of the frontend. Replacing css classes with React components is in many cases a good idea, for example:
Instead of css/Tailwind classes:
praise-button
praise-button-outline
Create React components:
<Button/>
<Button outline/>
praise-box and praise-page can also be refactored.
Another refactor is: encapsulating common patterns in more generic React components. Dialog from '@headlessui/react' for example is used in some places but used slightly different each time.
@pkretzschmar, this is part of a larger refactor of the frontend. Replacing css classes with React components is in many cases a good idea, for example:
Instead of css/Tailwind classes:
Create React components:
praise-box
andpraise-page
can also be refactored.See Tailwind tips here: https://tailwindcss.com/docs/reusing-styles#extracting-components-and-partials
Another refactor is: encapsulating common patterns in more generic React components.
Dialog
from '@headlessui/react' for example is used in some places but used slightly different each time.What other components could be made generic?
Pinging @nebs-dev @mattyg and @Vyvy-vi as well.
The text was updated successfully, but these errors were encountered: