chore: Refactor to remove getServerSideProps for /teams route (#19286)
* remove getServerSideProps * refactor teams route
This commit is contained in:
1 parent
37f1535e1a
commit
9f34a840d0
3 files changed
+14
-40
No files matched your search
@@ -4,13 +4,8 @@ import { TeamsListing } from "@calcom/features/ee/teams/components";
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import type { inferSSRProps } from "@calcom/types/inferSSRProps";
|
||||
import { Button } from "@calcom/ui";
|
||||
|
||||
import type { getServerSideProps } from "@lib/teams/getServerSideProps";
|
||||
|
||||
export type PageProps = inferSSRProps<typeof getServerSideProps>;
|
||||
|
||||
export const TeamsCTA = () => {
|
||||
const { t } = useLocale();
|
||||
const [user] = trpc.viewer.me.useSuspenseQuery();
|
||||
@@ -26,7 +21,7 @@ export const TeamsCTA = () => {
|
||||
) : null;
|
||||
};
|
||||
|
||||
function Teams(props: PageProps) {
|
||||
function Teams() {
|
||||
return <TeamsListing />;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user