Skip to content

Commit

Permalink
feat(dashboard): display birthdate on reception (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre authored Apr 8, 2022
1 parent 603f49c commit e03960c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dashboard/src/scenes/reception/SelectAndCreatePerson.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
} from '../../recoil/persons';
import { useRecoilState, useRecoilValue } from 'recoil';
import useApi from '../../services/api';
import { formatBirthDate } from '../../services/date';

const SelectAndCreatePerson = ({ value, onChange, autoCreate, inputId, classNamePrefix }) => {
const [persons, setPersons] = useRecoilState(personsState);
Expand Down Expand Up @@ -50,6 +51,7 @@ const SelectAndCreatePerson = ({ value, onChange, autoCreate, inputId, className
<span>
{!!person.alertness && <Alertness>!</Alertness>}
{person.name}
{person.birthdate ? <small className="text-muted"> - {formatBirthDate(person.birthdate)}</small> : null}
</span>
);
}}
Expand Down

0 comments on commit e03960c

Please sign in to comment.