feat: deal product services
This commit is contained in:
@@ -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={() => {
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user