feat: display org banner on personal event types (#14101)
* feat: display org banner on personal event types * chore: add banner url * fix: type error
This commit is contained in:
1 parent
0f1f0a29e6
commit
d6605d6dfd
7 files changed
+9
-2
No files matched your search
@@ -342,7 +342,7 @@ const BookerComponent = ({
|
||||
{orgBannerUrl && (
|
||||
<img
|
||||
loading="eager"
|
||||
className="-mb-9 h-40 max-h-40 rounded-tl-md sm:max-h-24"
|
||||
className="-mb-9 h-28 max-h-28 rounded-tl-md sm:max-h-24"
|
||||
alt="org banner"
|
||||
src={orgBannerUrl}
|
||||
/>
|
||||
|
||||
@@ -41,6 +41,7 @@ const userSelect = Prisma.validator<Prisma.UserSelect>()({
|
||||
name: true,
|
||||
slug: true,
|
||||
calVideoLogo: true,
|
||||
bannerUrl: true,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -41,6 +41,7 @@ const organizationSelect = {
|
||||
name: true,
|
||||
metadata: true,
|
||||
calVideoLogo: true,
|
||||
bannerUrl: true,
|
||||
};
|
||||
|
||||
export enum LookupTarget {
|
||||
|
||||
@@ -349,6 +349,7 @@ export class UserRepository {
|
||||
id: number;
|
||||
name: string;
|
||||
calVideoLogo: string | null;
|
||||
bannerUrl: string | null;
|
||||
slug: string | null;
|
||||
metadata: Prisma.JsonValue;
|
||||
};
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
import type { Team } from "@calcom/prisma/client";
|
||||
|
||||
type OrganizationWithRequestedSlug = Pick<Team, "name" | "id" | "slug" | "calVideoLogo"> & {
|
||||
type OrganizationWithRequestedSlug = Pick<Team, "name" | "id" | "slug" | "calVideoLogo", "bannerUrl"> & {
|
||||
requestedSlug: string | null;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user