Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed react-swipeable-views package #6312

Merged
merged 3 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 1 addition & 136 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
"react-player": "^2.12.0",
"react-qr-reader": "^2.2.1",
"react-redux": "^8.1.1",
"react-swipeable-views": "^0.14.0",
"react-transition-group": "^4.4.5",
"react-webcam": "^7.1.1",
"read-excel-file": "^5.6.1",
Expand Down Expand Up @@ -125,7 +124,6 @@
"@types/react-dom": "^18.2.6",
"@types/react-google-recaptcha": "^2.1.5",
"@types/react-qr-reader": "^2.1.4",
"@types/react-swipeable-views": "^0.13.2",
"@types/react-transition-group": "^4.4.6",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
Expand Down
15 changes: 6 additions & 9 deletions src/Components/Patient/ManagePatients.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import RecordMeta from "../../CAREUI/display/RecordMeta";
import SearchInput from "../Form/SearchInput";
import SortDropdownMenu from "../Common/SortDropdown";
import SwitchTabs from "../Common/components/SwitchTabs";
import SwipeableViews from "react-swipeable-views";
import { parseOptionId } from "../../Common/utils";
import { parsePhoneNumber } from "../../Utils/utils.js";
import { useDispatch } from "react-redux";
Expand Down Expand Up @@ -985,14 +984,12 @@ export const PatientManager = () => {
</div>
<div>
<PatientFilter {...advancedFilter} key={window.location.search} />
<SwipeableViews index={tabValue}>
<TabPanel value={tabValue} index={0}>
<div className="mb-4">{managePatients}</div>
</TabPanel>
<TabPanel value={tabValue} index={1}>
<div className="mb-4">{managePatients}</div>
</TabPanel>
</SwipeableViews>
<TabPanel value={tabValue} index={0}>
<div className="mb-4">{managePatients}</div>
</TabPanel>
<TabPanel value={tabValue} index={1}>
<div className="mb-4">{managePatients}</div>
</TabPanel>
<DoctorVideoSlideover
facilityId={params.facility}
show={showDoctors}
Expand Down
Loading