feat: deal product services

This commit is contained in:
2024-05-13 07:46:24 +03:00
parent 0ebb1d5e08
commit 6acb34271d
19 changed files with 401 additions and 30 deletions

View File

@@ -1,26 +1,31 @@
import {createLazyFileRoute} from "@tanstack/react-router";
import {useEffect} from "react";
import {openContextModal} from "@mantine/modals";
import ServiceSelectNew from "../components/Selects/ServiceSelectNew/ServiceSelectNew.tsx";
import {ServiceType} from "../shared/enums/ServiceType.ts";
export const Route = createLazyFileRoute('/test')({
component: TestPage
})
const data = [{
label: "test",
value: '0'
},
{
label: "test2",
value: '1'
}
]
function TestPage() {
useEffect(() => {
openContextModal({
modal: "barcodeTemplateFormModal",
withCloseButton: false,
innerProps: {
onCreate: () => {
}
}
})
}, []);
return (
<>
<ServiceSelectNew
filterType={ServiceType.PRODUCT_SERVICE}
onChange={() => {
}}
/>
</>
);
}