crap
This commit is contained in:
@@ -4,11 +4,13 @@ import styles from './ProductsPage.module.css';
|
||||
import {Button, Text, Pagination} from "@mantine/core";
|
||||
import ClientSelect from "../../../components/Selects/ClientSelect/ClientSelect.tsx";
|
||||
import ProductsTable from "../components/ProductsTable/ProductsTable.tsx";
|
||||
import useProductsList from "../hooks/useProductsList.tsx";
|
||||
import {modals} from "@mantine/modals";
|
||||
import {notifications} from "../../../shared/lib/notifications.ts";
|
||||
import {CreateProductRequest} from "../types.ts";
|
||||
import {ProductSchema, ProductService} from "../../../client";
|
||||
import ServiceSelect from "../../../components/ServiceSelect/ServiceSelect.tsx";
|
||||
import useProductsList from "../hooks/useProductsList.tsx";
|
||||
import useServicesList from "../../ServicesPage/hooks/useServicesList.tsx";
|
||||
|
||||
export const ProductsPage: FC = () => {
|
||||
const [clientId, setClientId] = useState(-1);
|
||||
@@ -79,8 +81,6 @@ export const ProductsPage: FC = () => {
|
||||
if (!paginationInfo) return;
|
||||
setTotalPages(paginationInfo.totalPages);
|
||||
}, [paginationInfo]);
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className={styles['container']}>
|
||||
@@ -91,6 +91,9 @@ export const ProductsPage: FC = () => {
|
||||
onClick={() => onCreateProductClick()}
|
||||
variant={"default"}
|
||||
>Создать</Button>
|
||||
{/*<ServiceSelect*/}
|
||||
{/* value={selectedService}*/}
|
||||
{/* onChange={setSelectedService}/>*/}
|
||||
</div>
|
||||
</PageBlock>
|
||||
<PageBlock>
|
||||
|
||||
Reference in New Issue
Block a user