This commit is contained in:
2023-10-29 18:06:08 +05:00
parent acb60219d2
commit ab347bc95b
14 changed files with 115 additions and 80 deletions
+9 -6
View File
@@ -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();