Conversation
| updatedAt DateTime @updatedAt | ||
| activities Activity[] | ||
|
|
||
| emergencies FosterFamilyEmergencies @default(UNKNOWN) |
There was a problem hiding this comment.
Est-ce qu'il y a une raison particulière pour utiliser une enum à la place d'un boolean ? 🤔
There was a problem hiding this comment.
Pas forcément, je me suis basée sur un exemple, il me semble que c'était celui des jardins 🤔
There was a problem hiding this comment.
Ok je vois. Pour emergencies on ne va pas avoir besoin d'UNKNOWN parce que c'est une décision qu'on prends nous, on ne dépends pas sur une FA pour avoir l'info. Tu peux passer le champs en boolean et utiliser false en valeur par défaut 👌
| FosterFamilyEmergencies, | ||
| React.ReactNode | ||
| > = { | ||
| [FosterFamilyEmergencies.NO]: <Icon href="icon-tree-slash-solid" />, |
There was a problem hiding this comment.
Je vais te fournir les icons a utiliser ici 👌
There was a problem hiding this comment.
On va utiliser siren-on-solid.svg quand une FA accepte les urgences et celle là (siren-on-slash-solid.svg) sinon:
| [FosterFamilyEmergencies.UNKNOWN]: <Icon href="icon-tree-question-solid" />, | ||
| }; | ||
|
|
||
| export function EmergenciesIcon({ |
There was a problem hiding this comment.
Je n'ai pas l'impression que ce composant soit utilisé.
Tu l'utilises quelque part ? 🤔
There was a problem hiding this comment.
Effectivement... Je me suis basée sur le Form.Field pour les types de logements. Je vais le supprimer :)
|
|
||
| <Separator /> | ||
|
|
||
| <Emergencies defaultFosterFamily={defaultFosterFamily} /> |
There was a problem hiding this comment.
Je mettrais bien ce champs juste après la disponibilité
There was a problem hiding this comment.
Je fais la modif :)
| ); | ||
| } | ||
|
|
||
| function Emergencies({ |
There was a problem hiding this comment.
| function Emergencies({ | |
| function EmergenciesField({ |
|
|
||
| <SimpleItem icon={<Icon href="icon-hand-holding-heart-solid" />}> | ||
| <Markdown components={HIGHLIGHT_COMPONENTS}> | ||
| {[TEXT_BY_EMERGENCY[fosterFamily.emergencies]].join("")} |
There was a problem hiding this comment.
| {[TEXT_BY_EMERGENCY[fosterFamily.emergencies]].join("")} | |
| {TEXT_BY_EMERGENCY[fosterFamily.emergencies]} |
No description provided.