empty screen for unpublished teams (#7206)
* empty screen for unpublished teams * i18n for unpublished team, removed contact button, added avatar to EmptyScreen * Merge branch 'main' into 7202-cal-1114-teamnull-better-404-screen # Conflicts: # apps/web/public/static/locales/en/common.json * Adds backend logic * Type fixes --------- Co-authored-by: zomars <[email protected]>
This commit is contained in:
1 parent
71a3374930
commit
02d70c63a5
8 files changed
+80
-41
No files matched your search
@@ -1,12 +1,12 @@
|
||||
import Link from "next/link";
|
||||
import type { TeamPageProps } from "pages/team/[slug]";
|
||||
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { md } from "@calcom/lib/markdownIt";
|
||||
import type { TeamWithMembers } from "@calcom/lib/server/queries/teams";
|
||||
import { Avatar } from "@calcom/ui";
|
||||
|
||||
type TeamType = TeamPageProps["team"];
|
||||
type TeamType = NonNullable<TeamWithMembers>;
|
||||
type MembersType = TeamType["members"];
|
||||
type MemberType = MembersType[number];
|
||||
|
||||
@@ -57,7 +57,7 @@ const Members = ({ members, teamName }: { members: MembersType; teamName: string
|
||||
);
|
||||
};
|
||||
|
||||
const Team = ({ team }: Omit<TeamPageProps, "trpcState">) => {
|
||||
const Team = ({ team }: { team: TeamType }) => {
|
||||
return (
|
||||
<div>
|
||||
<Members members={team.members} teamName={team.name} />
|
||||
|
||||
Reference in new issue
Block a user