Skip to content

Commit

Permalink
added usebreakpoint hook
Browse files Browse the repository at this point in the history
  • Loading branch information
i0am0arunava committed Nov 6, 2024
1 parent 4bb9541 commit a0baac9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/Facility/CentralNursingStation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,12 @@ interface Props {

export default function CentralNursingStation({ facilityId }: Props) {
const breakpointValues = {
default: 6, // Default value if no breakpoints match
fourK: 9, // Value for screens wider than 2080px defined in useBrekpoint hook
default: 6,
fourK: 9,
};
const PER_PAGE_LIMIT = useBreakpoints(breakpointValues);
const { t } = useTranslation();
const [isFullscreen, setFullscreen] = useFullscreen();

const { qParams, updateQuery, removeFilter, updatePage } = useFilters({
limit: PER_PAGE_LIMIT,
});
Expand Down

0 comments on commit a0baac9

Please sign in to comment.