Skip to content

Commit

Permalink
Fixed User Default View in Resource and Shifting
Browse files Browse the repository at this point in the history
  • Loading branch information
nithish1018 committed Dec 5, 2024
1 parent a24b9ca commit 11ee192
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Resource/ResourceBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const COMPLETED = ["COMPLETED", "REJECTED"];
const ACTIVE = resourceStatusOptions.filter((o) => !COMPLETED.includes(o));

export default function BoardView() {
localStorage.setItem("defaultResourceView", "board");
const { qParams, FilterBadges, advancedFilter, updateQuery } = useFilters({
limit: -1,
cacheBlacklist: ["title"],
Expand Down
1 change: 1 addition & 0 deletions src/components/Resource/ResourceList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import useQuery from "@/Utils/request/useQuery";
import { formatDateTime } from "@/Utils/utils";

export default function ListView() {
localStorage.setItem("defaultResourceView", "list");
const {
qParams,
Pagination,
Expand Down
1 change: 1 addition & 0 deletions src/components/Shifting/ShiftingBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const KanbanBoard = lazy(
) as KanbanBoardType;

export default function BoardView() {
localStorage.setItem("defaultShiftView", "board");
const { qParams, updateQuery, FilterBadges, advancedFilter } = useFilters({
limit: -1,
cacheBlacklist: ["patient_name"],
Expand Down
1 change: 1 addition & 0 deletions src/components/Shifting/ShiftingList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import useQuery from "@/Utils/request/useQuery";
import ShiftingTable from "./ShiftingTable";

export default function ListView() {
localStorage.setItem("defaultShiftView", "list");
const {
qParams,
updateQuery,
Expand Down

0 comments on commit 11ee192

Please sign in to comment.