This commit is contained in:
2024-07-03 18:57:18 +05:00
parent bf669a4d59
commit 9a8998501f
17 changed files with 515 additions and 260 deletions
-13
View File
@@ -10,7 +10,6 @@ import { Trans } from "react-i18next";
import i18n from "../i18n";
import { useState } from "react";
import LoaderIcon from "./icons/LoaderIcon";
import api from "../utils/api";
function SidebarTab4() {
const {
@@ -28,17 +27,6 @@ function SidebarTab4() {
const [isLoading, setIsLoading] = useState<boolean>(false);
async function sendInvite(email: string, link: string) {
try {
const reuslt: any = await api
.post("sendInvite", { json: { email, link } })
.json();
console.log("reuslt", reuslt);
} catch (error) {
console.log({ error: (error as Error).message });
}
}
async function handleClickSignUp() {
if (!selectedTime || !selectedDay) {
return;
@@ -63,7 +51,6 @@ function SidebarTab4() {
})
.json();
sendInvite(email, result.url);
setUrl(result.url);
setCurrentTab(currentTab + 1);
setIsLoading(false);