Fix: Changed file and component names (#1934)

Changed file and component names
This commit is contained in:
Gaurav
2023-10-09 19:12:25 +05:30
committed by GitHub
parent 150d1a880c
commit a09456055e
24 changed files with 134 additions and 137 deletions

View File

@ -4,9 +4,9 @@ import {
useGetPeopleQuery,
} from '~/generated/graphql';
import { useSetPeopleEntityTable } from '../hooks/useSetPeopleEntityTable';
import { useSetPeopleDataTable } from '../hooks/useSetPeopleDataTable';
export const PeopleEntityTableDataEffect = ({
export const PeopleDataTableDataEffect = ({
orderBy = [
{
createdAt: SortOrder.Desc,
@ -17,14 +17,14 @@ export const PeopleEntityTableDataEffect = ({
orderBy?: PersonOrderByWithRelationInput[];
whereFilters?: any;
}) => {
const setPeopleEntityTable = useSetPeopleEntityTable();
const setPeopleDataTable = useSetPeopleDataTable();
useGetPeopleQuery({
variables: { orderBy, where: whereFilters },
onCompleted: (data) => {
const people = data.people ?? [];
setPeopleEntityTable(people);
setPeopleDataTable(people);
},
});