Skip to content

Commit

Permalink
fixing es lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanTom committed Sep 8, 2023
1 parent 7c6d0b3 commit 90b947e
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 28 deletions.
32 changes: 16 additions & 16 deletions frontend/src/components/EditPatientProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const EditPatientProfile = () => {
<input type="text" placeholder="Select" className="input input-bordered w-full" disabled/>
</div>
<ul tabIndex={0} className="menu dropdown-content p-2 shadow bg-base-100 rounded-box w-full">
<li><a>Yes</a></li>
<li><a>No</a></li>
<li>Yes</li>
<li>No</li>
</ul>
</div>

Expand All @@ -51,11 +51,11 @@ const EditPatientProfile = () => {
<input type="text" placeholder="Select" className="input input-bordered w-full" disabled/>
</div>
<ul tabIndex={0} className="menu dropdown-content p-2 shadow bg-base-100 rounded-box w-full">
<li><a>Within the last month</a></li>
<li><a>Within the last 6 months</a></li>
<li><a>Within the last year</a></li>
<li><a>Over a year ago</a></li>
<li><a>I have never spoken with a counselor/therapist before.</a></li>
<li>Within the last month</li>
<li>Within the last 6 months</li>
<li>Within the last year</li>
<li>Over a year ago</li>
<li>I have never spoken with a counselor/therapist before.</li>
</ul>
</div>

Expand All @@ -67,12 +67,12 @@ const EditPatientProfile = () => {
<input type="text" placeholder="Select" className="input input-bordered w-full" disabled/>
</div>
<ul tabIndex={0} className="menu dropdown-content p-2 shadow bg-base-100 rounded-box w-full">
<li><a>18-24</a></li>
<li><a>25-34</a></li>
<li><a>35-44</a></li>
<li><a>45-54</a></li>
<li><a>55-64</a></li>
<li><a>65 and over</a></li>
<li>18-24</li>
<li>25-34</li>
<li>35-44</li>
<li>45-54</li>
<li>55-64</li>
<li>65 and over</li>
</ul>
</div>

Expand Down Expand Up @@ -113,9 +113,9 @@ const EditPatientProfile = () => {
<input type="text" placeholder="Select" className="input input-bordered w-full" disabled/>
</div>
<ul tabIndex={0} className="menu dropdown-content p-2 shadow bg-base-100 rounded-box w-full">
<li><a>Male</a></li>
<li><a>Female</a></li>
<li><a>No preference</a></li>
<li>Male</li>
<li>Female</li>
<li>No preference</li>
</ul>
</div>

Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/VideoChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ const VideoChat: React.FC = () => {
const [dataChannel, setDataChannel] = useState<RTCDataChannel | null>(null);
const [layoutOption, setLayoutOption] = useState('grid'); // 'grid' or 'spotlight'

console.log(remoteStream);
console.log(dataChannel);

// add this component to a new data channel
useEffect(() => {
Expand Down Expand Up @@ -264,7 +266,7 @@ const VideoChat: React.FC = () => {
const changes = snapshot.docChanges();
changes.forEach((change) => {
if (change.type === 'added') {
let data = change.doc.data();
const data = change.doc.data();
pc!.addIceCandidate(new RTCIceCandidate(data));
} /** when new ice candidate is added to that collection
create ice candidate locally */
Expand Down
6 changes: 0 additions & 6 deletions frontend/src/components/dashboard/AppointmentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ import AppointmentQuestion from './AppointmentQuestion'
import Link from 'next/link';
import React from 'react'

interface IAppointmentCard {
p_name: string,
start: Date,
end: Date
}

const questionsArr = Object.values(questions);

const AppointmentCard = ({ p_name, start, end, description }: { p_name: string, start: Date, end: Date, description: string }) => {
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/components/filter/FilterBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ const FilterBar = () => {
<div className="dropdown">
<label tabIndex={0} className="btn btn-sm flex gap-16 m-1 border border-solid bg-white text-gray-500 italic normal-case">Age Group {chevron_down}</label>
<ul tabIndex={0} className="dropdown-content menu p-2 shadow bg-base-100 rounded-box w-52">
{ageGroups.map((e) => <li><a>{e}</a></li>)}
{ageGroups.map((e) => <li>{e}</li>)}
</ul>
</div>
<div className="dropdown">
<label tabIndex={0} className="btn btn-sm flex gap-16 m-1 border border-solid bg-white text-gray-500 italic normal-case">Gender {chevron_down}</label>
<ul tabIndex={0} className="dropdown-content menu p-2 shadow bg-base-100 rounded-box w-52">
{genders.map((e) => <li><a>{e}</a></li>)}
{genders.map((e) => <li>{e}</li>)}
</ul>
</div>
<div className="dropdown">
<label tabIndex={0} className="btn btn-sm flex gap-16 m-1 border border-solid bg-white text-gray-500 italic normal-case">Conditions {chevron_down}</label>
<ul tabIndex={0} className="dropdown-content menu p-2 shadow bg-base-100 rounded-box w-52">
<li><a>Item 1</a></li>
<li><a>Item 2</a></li>
<li>Item 1</li>
<li>Item 2</li>
</ul>
</div>
<button className="btn flex flex-row justify-center items-center gap-2.5 rounded-xl bg-[#DEDEDE] normal-case text-gray-500 text-lg border-none px-14" onClick={filter}>
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/filter/FilterUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const FilterUser = () => {
const [currentPage, setCurrentPage] = useState(1);

// Number of records to be displayed on each page
const [recordsPerPage, setRecordsPerPage] = useState(10);
const recordsPerPage = 10;
// const [recordsPerPage, setRecordsPerPage] = useState(10);
// Index of the last record on the current page
const indexOfLastRecord = currentPage * recordsPerPage;
// Index of the first record on the current page
Expand Down

0 comments on commit 90b947e

Please sign in to comment.