Skip to content

Commit

Permalink
Removed react-swipeable-views package (ohcnetwork#6312)
Browse files Browse the repository at this point in the history
* removed SwipeableViews from ManagePatients.tsx

* Removed react-swipeable-views package
  • Loading branch information
thtauhid authored Sep 20, 2023
1 parent fb8b9e2 commit 9fe59db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 147 deletions.
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

0 comments on commit 9fe59db

Please sign in to comment.