- Introduced getCustomers action and corresponding server method to fetch customer data with pagination and sorting. - Updated hooks to support infinite querying of customers, improving data handling in components. - Refactored ContactsList and related components to utilize the new customer fetching logic, enhancing user experience. - Adjusted filter labels in dropdowns for better clarity and user understanding.
20 lines
586 B
TypeScript
20 lines
586 B
TypeScript
import { ContactsList } from '@/components/contacts';
|
||
import { ContactsContextProvider } from '@/context/contacts';
|
||
import { Card } from '@repo/ui/components/ui/card';
|
||
|
||
export default function ContactsPage() {
|
||
return (
|
||
<ContactsContextProvider>
|
||
<Card>
|
||
<div className="flex flex-row items-center justify-between space-x-4 p-4">
|
||
<h1 className="font-bold">Контакты</h1>
|
||
{/* <ContactsFilter /> */}
|
||
</div>
|
||
<div className="p-4 pt-0">
|
||
<ContactsList />
|
||
</div>
|
||
</Card>
|
||
</ContactsContextProvider>
|
||
);
|
||
}
|