Skip to content

Commit

Permalink
added hangoutLink for google meet
Browse files Browse the repository at this point in the history
  • Loading branch information
siddheshkothadi committed Apr 1, 2021
1 parent 19c7b03 commit 1886744
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 2 additions & 5 deletions frontend/src/Patient/AppointmentStatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ const AppointmentStatus = () => {
return apntmnt.id === id
})

const code = meetCode.conferenceData.conferenceId

console.log(`meet code ${code}`)
return `https://meet.google.com/${code}`
return meetCode ? meetCode.hangoutLink : "#"
}
return '#'
}
Expand Down Expand Up @@ -101,7 +98,7 @@ const AppointmentStatus = () => {
<th scope="row">{Appointment.date}</th>
<th scope="row">{Appointment.slotTime}</th>
<th scope="row">{Appointment.doctorName}</th>
<th scope="row">Meet <a href={getMeetLink(Appointment._id)}>Link</a></th>
<th scope="row">Meet <a href={getMeetLink(Appointment._id)} target="_blank">Link</a></th>
</tr>
))}
</tbody>
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Patient/PerviousAppointments.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const PatientAppointments = () => {
<th scope="col">Date</th>
<th scope="col">Time</th>
<th scope="col">Doctor Name</th>
<th scope="col">Meet Link</th>
</tr>
</thead>
<tbody>
Expand All @@ -62,7 +61,6 @@ const PatientAppointments = () => {
<th scope="row">{Appointment.date}</th>
<th scope="row">{Appointment.slotTime}</th>
<th scope="row">{Appointment.doctorName}</th>
<th scope="row">Join</th>
</tr>
))}
</tbody>
Expand Down

0 comments on commit 1886744

Please sign in to comment.