-
Notifications
You must be signed in to change notification settings - Fork 1
Un 152 flip card #283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Un 152 flip card #283
Conversation
| <FlipCard.Header>Header</FlipCard.Header> | ||
| <FlipCard.Body | ||
| // height='300px' | ||
| front={ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a sto punto non veniva più pulito fare anche front e back come sotto componenti?
src/pages/Campaign/widgets/widgetCards/FlipCard/FlipCardHeader.tsx
Outdated
Show resolved
Hide resolved
cannarocks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iacopolea in generale mi sembra un ottimo lavoro, resta solo qualche dubbio sui children dolly soprattutto in termini di leggibilità e manutenibilità.
src/pages/Campaign/widgets/widgetCards/FlipCard/FlipCardHeader.tsx
Outdated
Show resolved
Hide resolved
f60e186 to
a2c5b13
Compare
|
rebasato su develop per eliminare i conflitti |
src/pages/Campaign/widgets/widgetCards/FlipCard/FlipCardContext.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| export const useFlipCardContext = () => { | ||
| const context = useContext(FlipCardContext); | ||
|
|
||
| if (!context) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Questo controllo qua mi permette di avere il null come default e di non preoccuparmene lato sviluppo (perché ts sa che sarà sempre valorizzato). Dovessi fare un'altra card con lo stesso contesto oppure utilizzarlo dimenticandomi il provider avrò subito un errore visibile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
molto bellino così
Flip card e refactor widget cards con componenti generici