Applying feedback
parent
fa8a5d2577
commit
1f02eabfe2
|
@ -13,7 +13,7 @@ export async function getHandler(req: NextApiRequest, res: NextApiResponse) {
|
|||
const session = checkSession(req);
|
||||
|
||||
const { api_key } = req.body;
|
||||
if (!api_key) throw new HttpError({ statusCode: 400, message: "No Api Key provoided to check" });
|
||||
if (!api_key) throw new HttpError({ statusCode: 400, message: "No Api Key provided to check" });
|
||||
|
||||
const encrypted = symmetricEncrypt(JSON.stringify({ api_key }), process.env.CALENDSO_ENCRYPTION_KEY || "");
|
||||
|
||||
|
|
|
@ -7,13 +7,15 @@ import { Toaster } from "react-hot-toast";
|
|||
import z from "zod";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button, Form, showToast, TextField } from "@calcom/ui/v2";
|
||||
import { Button } from "@calcom/ui";
|
||||
import { Form, TextField } from "@calcom/ui/components/form";
|
||||
import { showToast } from "@calcom/ui/v2";
|
||||
|
||||
const formSchema = z.object({
|
||||
api_key: z.string(),
|
||||
});
|
||||
|
||||
export default function CloseComSetup() {
|
||||
export default function SendgridSetup() {
|
||||
const { t } = useLocale();
|
||||
const router = useRouter();
|
||||
const [testPassed, setTestPassed] = useState<boolean | undefined>(undefined);
|
||||
|
|
Loading…
Reference in New Issue