mv ONBOARDING_INTRODUCED_AT to new file (#557)
otherwise will the `/event-types`-route probably unnecessarily import the whole `getting_started`-page
This commit is contained in:
3
lib/getting-started.tsx
Normal file
3
lib/getting-started.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
import dayjs from "dayjs";
|
||||
|
||||
export const ONBOARDING_INTRODUCED_AT = dayjs("September 1 2021").toISOString();
|
||||
@@ -24,7 +24,7 @@ import prisma from "@lib/prisma";
|
||||
import { GetServerSidePropsContext, InferGetServerSidePropsType } from "next";
|
||||
import { useMutation } from "react-query";
|
||||
import createEventType from "@lib/mutations/event-types/create-event-type";
|
||||
import { ONBOARDING_INTRODUCED_AT } from "../getting-started";
|
||||
import { ONBOARDING_INTRODUCED_AT } from "@lib/getting-started";
|
||||
|
||||
const EventTypesPage = (props: InferGetServerSidePropsType<typeof getServerSideProps>) => {
|
||||
const { user, types } = props;
|
||||
|
||||
@@ -50,8 +50,6 @@ const DEFAULT_EVENT_TYPES = [
|
||||
},
|
||||
];
|
||||
|
||||
export const ONBOARDING_INTRODUCED_AT = dayjs("September 1 2021").toISOString();
|
||||
|
||||
type OnboardingProps = {
|
||||
user: User;
|
||||
integrations?: Record<string, string>[];
|
||||
|
||||
Reference in New Issue
Block a user