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 🤔
| 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 👌
| [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.