Skip to content

Commit

Permalink
Merge pull request #7 from SOS-RS/fix/hiden-undercontrol
Browse files Browse the repository at this point in the history
fix: remove undercontrol view
  • Loading branch information
fagundesjg authored May 7, 2024
2 parents d984663 + b5d3a3f commit e1e4179
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/Shelter/Shelter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { cn, getAvailabilityProps, group } from '@/lib/utils';
import { Button } from '@/components/ui/button';
import { ShelterCategoryItems } from './components';
import { IShelterCategoryItemsProps } from './components/ShelterCategoryItems/types';
import { SupplyPriority } from '@/service/supply/types';

const Shelter = () => {
const params = useParams();
Expand All @@ -18,6 +19,7 @@ const Shelter = () => {

const shelterCategories: IShelterCategoryItemsProps[] = useMemo(() => {
const grouped = group(shelter?.supplies ?? [], 'priority');
delete grouped[SupplyPriority.UnderControl];
return Object.entries(grouped)
.sort(([a], [b]) => (+a > +b ? -1 : 1))
.map(([key, values]) => ({
Expand Down

0 comments on commit e1e4179

Please sign in to comment.