Adding "( , )" when user has multiple phone numbers.
This commit is contained in:
parent
7709483a76
commit
9ce6da35fb
@ -84,15 +84,19 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => {
|
||||
|
||||
{contactProfile?.contactPhones?.length > 0 && (
|
||||
<div className="d-flex mb-2">
|
||||
<div style={{ width: "100px", minWidth: "110px" }} className="d-flex align-items-center">
|
||||
<div
|
||||
style={{ width: "100px", minWidth: "110px" }}
|
||||
className="d-flex align-items-center"
|
||||
>
|
||||
<i className="bx bx-phone bx-xs me-1"></i>
|
||||
<p className="m-0">Phone :</p>
|
||||
</div>
|
||||
<div>
|
||||
<ul className="list-inline mb-0">
|
||||
{contactProfile?.contactPhones.map((phone, idx) => (
|
||||
<li className="list-inline-item me-3" key={idx}>
|
||||
{contactProfile.contactPhones.map((phone, idx) => (
|
||||
<li className="list-inline-item me-1" key={idx}>
|
||||
{phone.phoneNumber}
|
||||
{idx < contactProfile.contactPhones.length - 1 && ","}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
@ -100,6 +104,7 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => {
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
{contactProfile?.createdAt && (
|
||||
<div className="d-flex mb-2">
|
||||
<div style={{ width: "100px", minWidth: "110px" }} className="d-flex align-items-center">
|
||||
|
Loading…
x
Reference in New Issue
Block a user