Skip to content

✨🏢 Add foster families emergencies#757

Open
sbellavoine wants to merge 1 commit into
devfrom
tec-111-foster-family-emergencies
Open

✨🏢 Add foster families emergencies#757
sbellavoine wants to merge 1 commit into
devfrom
tec-111-foster-family-emergencies

Conversation

@sbellavoine

Copy link
Copy Markdown
Collaborator

No description provided.

@simonrelet simonrelet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Trop forte!

Comment thread libs/prisma/schema.prisma Outdated
Comment thread apps/admin/src/foster-families/emergencies.tsx Outdated
Comment thread apps/admin/src/foster-families/emergencies.tsx Outdated
Comment thread apps/admin/src/foster-families/form.tsx Outdated
Comment thread apps/admin/src/foster-families/form.tsx Outdated
Comment thread apps/admin/src/routes/_layout.foster-families.$id._index/situation-card.tsx Outdated
@sbellavoine sbellavoine force-pushed the tec-111-foster-family-emergencies branch 3 times, most recently from 41db10b to bf5da94 Compare June 1, 2026 16:44
@sbellavoine sbellavoine force-pushed the tec-111-foster-family-emergencies branch from bf5da94 to aff45b3 Compare June 1, 2026 17:12
name={ActionFormData.keys.emergencies}
value={ActionFormData.schema.shape.emergencies.Enum.NO}
checked={!emergencies}
onChange={() => setEmergencies(false)}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comme emergencies n'est pas utilisé ailleurs que le champs tu peux supprimer le state et remplacer les props checked et onChange par defaultChecked. Il y a un example dans HousingField


<Separator />

<Form.Field>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tu peux extraire ce champ dans un composant comme pour HousingField et GardenField.

</Markdown>
</SimpleItem>

<SimpleItem icon={<Icon href="icon-hand-holding-heart-solid" />}>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

On peut aussi utiliser les deux icons ici

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.

2 participants