Lint fixes (#1826)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
parent
b8e9275ceb
commit
bcf40bbf26
10 changed files with 23 additions and 16 deletions
|
@ -8,10 +8,10 @@ import { HttpError } from "@lib/core/http/error";
|
||||||
import { useLocale } from "@lib/hooks/useLocale";
|
import { useLocale } from "@lib/hooks/useLocale";
|
||||||
import { inferQueryOutput, trpc } from "@lib/trpc";
|
import { inferQueryOutput, trpc } from "@lib/trpc";
|
||||||
|
|
||||||
import { TextArea } from "@components/form/fields";
|
|
||||||
import TableActions, { ActionType } from "@components/ui/TableActions";
|
|
||||||
import { Dialog, DialogClose, DialogContent, DialogFooter, DialogHeader } from "@components/Dialog";
|
import { Dialog, DialogClose, DialogContent, DialogFooter, DialogHeader } from "@components/Dialog";
|
||||||
|
import { TextArea } from "@components/form/fields";
|
||||||
import Button from "@components/ui/Button";
|
import Button from "@components/ui/Button";
|
||||||
|
import TableActions, { ActionType } from "@components/ui/TableActions";
|
||||||
|
|
||||||
type BookingItem = inferQueryOutput<"viewer.bookings">["bookings"][number];
|
type BookingItem = inferQueryOutput<"viewer.bookings">["bookings"][number];
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
import Avatar from "@components/ui/Avatar";
|
|
||||||
import Select from "@components/ui/form/Select";
|
|
||||||
import { CheckIcon, XIcon } from "@heroicons/react/outline";
|
import { CheckIcon, XIcon } from "@heroicons/react/outline";
|
||||||
import { useLocale } from "@lib/hooks/useLocale";
|
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { MultiValue } from "react-select";
|
import { MultiValue } from "react-select";
|
||||||
|
|
||||||
|
import { useLocale } from "@lib/hooks/useLocale";
|
||||||
|
|
||||||
|
import Avatar from "@components/ui/Avatar";
|
||||||
|
import Select from "@components/ui/form/Select";
|
||||||
|
|
||||||
type CheckedSelectValue = {
|
type CheckedSelectValue = {
|
||||||
avatar: string;
|
avatar: string;
|
||||||
label: string;
|
label: string;
|
||||||
|
|
|
@ -3,6 +3,7 @@ import { useRef } from "react";
|
||||||
|
|
||||||
import { useLocale } from "@lib/hooks/useLocale";
|
import { useLocale } from "@lib/hooks/useLocale";
|
||||||
import showToast from "@lib/notification";
|
import showToast from "@lib/notification";
|
||||||
|
|
||||||
import Button from "@components/ui/Button";
|
import Button from "@components/ui/Button";
|
||||||
|
|
||||||
interface SetTimesModalProps {
|
interface SetTimesModalProps {
|
||||||
|
|
|
@ -3,12 +3,12 @@ import { TFunction } from "next-i18next";
|
||||||
|
|
||||||
import { PaymentInfo } from "@ee/lib/stripe/server";
|
import { PaymentInfo } from "@ee/lib/stripe/server";
|
||||||
|
|
||||||
|
import type { Event } from "@lib/events/EventManager";
|
||||||
import { Ensure } from "@lib/types/utils";
|
import { Ensure } from "@lib/types/utils";
|
||||||
import { VideoCallData } from "@lib/videoClient";
|
import { VideoCallData } from "@lib/videoClient";
|
||||||
|
|
||||||
import { NewCalendarEventType } from "../constants/types";
|
import { NewCalendarEventType } from "../constants/types";
|
||||||
import { ConferenceData } from "./GoogleCalendar";
|
import { ConferenceData } from "./GoogleCalendar";
|
||||||
import type { Event } from "@lib/events/EventManager";
|
|
||||||
|
|
||||||
export type Person = {
|
export type Person = {
|
||||||
name: string;
|
name: string;
|
||||||
|
|
|
@ -18,6 +18,7 @@ import { v4 as uuidv4 } from "uuid";
|
||||||
|
|
||||||
import { getLocation, getRichDescription } from "@lib/CalEventParser";
|
import { getLocation, getRichDescription } from "@lib/CalEventParser";
|
||||||
import { symmetricDecrypt } from "@lib/crypto";
|
import { symmetricDecrypt } from "@lib/crypto";
|
||||||
|
import type { Event } from "@lib/events/EventManager";
|
||||||
import logger from "@lib/logger";
|
import logger from "@lib/logger";
|
||||||
|
|
||||||
import { TIMEZONE_FORMAT } from "../constants/formats";
|
import { TIMEZONE_FORMAT } from "../constants/formats";
|
||||||
|
@ -25,7 +26,6 @@ import { CALDAV_CALENDAR_TYPE } from "../constants/generals";
|
||||||
import { CalendarEventType, EventBusyDate, NewCalendarEventType } from "../constants/types";
|
import { CalendarEventType, EventBusyDate, NewCalendarEventType } from "../constants/types";
|
||||||
import { Calendar, CalendarEvent, IntegrationCalendar } from "../interfaces/Calendar";
|
import { Calendar, CalendarEvent, IntegrationCalendar } from "../interfaces/Calendar";
|
||||||
import { convertDate, getAttendees, getDuration } from "../utils/CalendarUtils";
|
import { convertDate, getAttendees, getDuration } from "../utils/CalendarUtils";
|
||||||
import type { Event } from "@lib/events/EventManager";
|
|
||||||
|
|
||||||
dayjs.extend(utc);
|
dayjs.extend(utc);
|
||||||
dayjs.extend(timezone);
|
dayjs.extend(timezone);
|
||||||
|
|
|
@ -1,15 +1,18 @@
|
||||||
import BookingPage from "@components/booking/pages/BookingPage";
|
|
||||||
import { asStringOrThrow } from "@lib/asStringOrNull";
|
|
||||||
import prisma from "@lib/prisma";
|
|
||||||
import { inferSSRProps } from "@lib/types/inferSSRProps";
|
|
||||||
import { Prisma } from "@prisma/client";
|
import { Prisma } from "@prisma/client";
|
||||||
import { ssrInit } from "@server/lib/ssr";
|
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import timezone from "dayjs/plugin/timezone";
|
import timezone from "dayjs/plugin/timezone";
|
||||||
import utc from "dayjs/plugin/utc";
|
import utc from "dayjs/plugin/utc";
|
||||||
import { GetServerSidePropsContext } from "next";
|
import { GetServerSidePropsContext } from "next";
|
||||||
import { JSONObject } from "superjson/dist/types";
|
import { JSONObject } from "superjson/dist/types";
|
||||||
|
|
||||||
|
import { asStringOrThrow } from "@lib/asStringOrNull";
|
||||||
|
import prisma from "@lib/prisma";
|
||||||
|
import { inferSSRProps } from "@lib/types/inferSSRProps";
|
||||||
|
|
||||||
|
import BookingPage from "@components/booking/pages/BookingPage";
|
||||||
|
|
||||||
|
import { ssrInit } from "@server/lib/ssr";
|
||||||
|
|
||||||
dayjs.extend(utc);
|
dayjs.extend(utc);
|
||||||
dayjs.extend(timezone);
|
dayjs.extend(timezone);
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { PrismaClientKnownRequestError } from "@prisma/client/runtime";
|
||||||
import { pick } from "lodash";
|
import { pick } from "lodash";
|
||||||
import type { NextApiRequest, NextApiResponse } from "next";
|
import type { NextApiRequest, NextApiResponse } from "next";
|
||||||
|
|
||||||
|
@ -5,7 +6,6 @@ import { getSession } from "@lib/auth";
|
||||||
import prisma from "@lib/prisma";
|
import prisma from "@lib/prisma";
|
||||||
|
|
||||||
import { resizeBase64Image } from "@server/lib/resizeBase64Image";
|
import { resizeBase64Image } from "@server/lib/resizeBase64Image";
|
||||||
import { PrismaClientKnownRequestError } from "@prisma/client/runtime";
|
|
||||||
|
|
||||||
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
|
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||||
const session = await getSession({ req: req });
|
const session = await getSession({ req: req });
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import { getSession } from "@lib/auth";
|
|
||||||
import { NextPageContext } from "next";
|
import { NextPageContext } from "next";
|
||||||
|
|
||||||
|
import { getSession } from "@lib/auth";
|
||||||
|
|
||||||
function RedirectPage() {
|
function RedirectPage() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { Prisma } from "@prisma/client";
|
||||||
import { GetServerSidePropsContext } from "next";
|
import { GetServerSidePropsContext } from "next";
|
||||||
import { JSONObject } from "superjson/dist/types";
|
import { JSONObject } from "superjson/dist/types";
|
||||||
|
|
||||||
|
@ -6,7 +7,6 @@ import prisma from "@lib/prisma";
|
||||||
import { inferSSRProps } from "@lib/types/inferSSRProps";
|
import { inferSSRProps } from "@lib/types/inferSSRProps";
|
||||||
|
|
||||||
import BookingPage from "@components/booking/pages/BookingPage";
|
import BookingPage from "@components/booking/pages/BookingPage";
|
||||||
import { Prisma } from "@prisma/client";
|
|
||||||
|
|
||||||
export type TeamBookingPageProps = inferSSRProps<typeof getServerSideProps>;
|
export type TeamBookingPageProps = inferSSRProps<typeof getServerSideProps>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue