Merge remote-tracking branch 'origin/statistics'
# Conflicts: # src/client/models/DealSchema.ts
This commit is contained in:
@@ -30,6 +30,7 @@ import { IconBarcode, IconPrinter } from "@tabler/icons-react";
|
||||
import styles from "../../../ui/LeadsPage.module.css";
|
||||
import { base64ToBlob } from "../../../../../shared/lib/utils.ts";
|
||||
import { DatePickerInput } from "@mantine/dates";
|
||||
import ManagerSelect from "../../../../../components/ManagerSelect/ManagerSelect.tsx";
|
||||
|
||||
type Props = {
|
||||
deal: DealSchema;
|
||||
@@ -211,6 +212,11 @@ const Content: FC<Props> = ({ deal }) => {
|
||||
{...form.getInputProps("receivingSlotDate")}
|
||||
|
||||
/>
|
||||
<ManagerSelect
|
||||
placeholder={"Укажите менеджера"}
|
||||
label={"Менеджер"}
|
||||
{...form.getInputProps("manager")}
|
||||
/>
|
||||
</Flex>
|
||||
</Fieldset>
|
||||
<Flex
|
||||
|
||||
11
src/pages/LeadsPage/hooks/useManagersList.tsx
Normal file
11
src/pages/LeadsPage/hooks/useManagersList.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import ObjectList from "../../../hooks/objectList.tsx";
|
||||
import { UserService } from "../../../client";
|
||||
|
||||
const useManagersList = () =>
|
||||
ObjectList({
|
||||
queryFn: UserService.getManagers,
|
||||
getObjectsFn: response => response.managers,
|
||||
queryKey: "getManagers",
|
||||
});
|
||||
|
||||
export default useManagersList;
|
||||
Reference in New Issue
Block a user