Skip to content

Commit

Permalink
refactor: enable infinite scrolling for all (#16463)
Browse files Browse the repository at this point in the history
* refactor: enable infinite scrolling for all

* chore: remove unused code

* fix: tests

* chore: type err

* chore: update email embed test

* chore: update tests

* chore: update tests

* chore: fix horizontal tabitem

* chore

* fix: conflicts

* chore: conflict

* fix: E2E tests

* chore: remove idle

* fix test

---------

Co-authored-by: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com>
  • Loading branch information
Udit-takkar and alishaz-polymath authored Sep 30, 2024
1 parent c834b92 commit ac300ff
Show file tree
Hide file tree
Showing 14 changed files with 67 additions and 884 deletions.
3 changes: 0 additions & 3 deletions apps/web/app/WithAppDirSsr.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@ export const withAppDirSsr =
...("trpcState" in props && {
dehydratedState: props.trpcState,
}),
...("isInfiniteScrollEnabled" in props && {
isInfiniteScrollEnabled: props.isInfiniteScrollEnabled,
}),
};
};
7 changes: 1 addition & 6 deletions apps/web/lib/event-types/getServerSideProps.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { GetServerSidePropsContext } from "next";

import { getServerSession } from "@calcom/features/auth/lib/getServerSession";
import { ENABLE_INFINITE_EVENT_TYPES_FOR_ORG } from "@calcom/lib/constants";

import { ssrInit } from "@server/lib/ssr";

Expand All @@ -18,9 +17,5 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
};
}

const isInfiniteScrollEnabled = session.user?.org?.slug
? ENABLE_INFINITE_EVENT_TYPES_FOR_ORG.includes(session.user.org.slug)
: false;

return { props: { trpcState: ssr.dehydrate(), isInfiniteScrollEnabled } };
return { props: { trpcState: ssr.dehydrate() } };
};
Loading

0 comments on commit ac300ff

Please sign in to comment.