Skip to content

Commit

Permalink
Used the Get_Active_Residents query
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikbselva committed Nov 22, 2024
1 parent 2df820e commit fa6a36f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/pages/home/RoomGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import React, { useEffect, useState } from "react";
import { Flex, Grid } from "@chakra-ui/react";
import { useQuery } from "@apollo/client";
import RoomCard from "./HomeRoomCard";
import { GET_ALL_RESIDENTS } from "../../../APIClients/Queries/ResidentsQueries";
import { GET_ACTIVE_RESIDENTS } from "../../../APIClients/Queries/ResidentsQueries";
import { GET_TASKS_BY_STATUS } from "../../../APIClients/Queries/TaskQueries";

const RoomGrid = () => {
const { data: residentData } = useQuery(GET_ALL_RESIDENTS);
const { data: residentData } = useQuery(GET_ACTIVE_RESIDENTS);

const { data: pending } = useQuery(GET_TASKS_BY_STATUS, {
variables: { status: "PENDING_APPROVAL" },
Expand Down

0 comments on commit fa6a36f

Please sign in to comment.