Skip to content

Conversation

@iacopolea
Copy link
Member

Flip card e refactor widget cards con componenti generici

<FlipCard.Header>Header</FlipCard.Header>
<FlipCard.Body
// height='300px'
front={
Copy link
Collaborator

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?

Copy link
Member

@cannarocks cannarocks left a 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à.

@iacopolea iacopolea force-pushed the UN-152-switchable-card branch from f60e186 to a2c5b13 Compare November 28, 2022 09:50
@iacopolea
Copy link
Member Author

rebasato su develop per eliminare i conflitti

Copy link
Member

@cannarocks cannarocks left a 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)
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

molto bellino così

@iacopolea iacopolea merged commit e833727 into develop Nov 28, 2022
@iacopolea iacopolea deleted the UN-152-switchable-card branch November 28, 2022 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants