upd
This commit is contained in:
@@ -20,6 +20,7 @@ function SidebarTab4() {
|
||||
name,
|
||||
phone,
|
||||
email,
|
||||
buildId,
|
||||
] = useSidebarTabStore((state) => [
|
||||
state.currentTab,
|
||||
state.setCurrentTab,
|
||||
@@ -29,6 +30,7 @@ function SidebarTab4() {
|
||||
state.name,
|
||||
state.phone,
|
||||
state.email,
|
||||
state.buildId,
|
||||
]);
|
||||
|
||||
const [isLoading, setIsLoading] = useState<boolean>(false);
|
||||
@@ -44,14 +46,15 @@ function SidebarTab4() {
|
||||
|
||||
try {
|
||||
await ky
|
||||
.post("https://coord.graff.tech/scheduled_sessions", {
|
||||
.post(`${import.meta.env.VITE_CRM_API_URL}/scheduled_sessions`, {
|
||||
json: {
|
||||
username: "test",
|
||||
name,
|
||||
phone,
|
||||
email,
|
||||
title: "nksJukovaDev",
|
||||
buildId,
|
||||
startAt,
|
||||
client: {
|
||||
name,
|
||||
phone,
|
||||
email,
|
||||
},
|
||||
},
|
||||
})
|
||||
.json();
|
||||
|
||||
Reference in New Issue
Block a user