Some cleanup

This commit is contained in:
Joe Au-Yeung 2022-10-21 17:17:20 -04:00
parent c193b93ff6
commit 671077d7b0
3 changed files with 2 additions and 8 deletions

View File

@ -222,10 +222,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
const event = stripe.webhooks.constructEvent(payload, sig, process.env.STRIPE_WEBHOOK_SECRET);
// if (!event.account) {
// throw new HttpCode({ statusCode: 202, message: "Incoming connected account" });
// }
const handler = webhookHandlers[event.type];
if (handler) {
await handler(event);

View File

@ -7,9 +7,8 @@ import { WEBAPP_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc/react";
import { Icon } from "@calcom/ui";
import { Avatar, Badge, Button } from "@calcom/ui/v2/core";
import { Avatar, Badge, Button, showToast } from "@calcom/ui/v2/core";
import { Label } from "@calcom/ui/v2/core/form";
import { showToast } from "@calcom/ui/v2/core/notifications";
import { SkeletonContainer, SkeletonText } from "@calcom/ui/v2/core/skeleton";
const AddNewTeamMemberSkeleton = () => {

View File

@ -1,6 +1,5 @@
import { useForm, Controller } from "react-hook-form";
import { classNames } from "@calcom/lib";
import { WEBAPP_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import slugify from "@calcom/lib/slugify";
@ -8,7 +7,7 @@ import { trpc } from "@calcom/trpc/react";
import { Icon } from "@calcom/ui";
import { Button, Avatar } from "@calcom/ui/v2";
import ImageUploader from "@calcom/ui/v2/core/ImageUploader";
import { Form, TextField, Label } from "@calcom/ui/v2/core/form/fields";
import { Form, TextField } from "@calcom/ui/v2/core/form/fields";
const CreateANewTeamForm = (props: { nextStep: () => void; setTeamId: (teamId: number) => void }) => {
const { t } = useLocale();