Parcourir la source

feat(frontend): show client group in the client info modal

The group label was already on ClientRecord but the info modal never
displayed it. Add a conditional row next to the comment, rendered as a
geekblue tag to match the group column in the clients table.
MHSanaei il y a 17 heures
Parent
commit
1afab47f04
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      frontend/src/pages/clients/ClientInfoModal.tsx

+ 6 - 0
frontend/src/pages/clients/ClientInfoModal.tsx

@@ -308,6 +308,12 @@ export default function ClientInfoModal({
                   <td>{t('pages.inbounds.updatedAt')}</td>
                   <td><Tag>{dateLabel(client.updatedAt)}</Tag></td>
                 </tr>
+                {client.group && (
+                  <tr>
+                    <td>{t('pages.clients.group')}</td>
+                    <td><Tag color="geekblue">{client.group}</Tag></td>
+                  </tr>
+                )}
                 {client.comment && (
                   <tr>
                     <td>{t('pages.clients.comment')}</td>