upd
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user