fix: add org avatar to org booking pages [CAL-2333] (#10847)

* Add org avatar to org booking pages

* Using web app url for org avatars + missing i18n string

---------

Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
Leo GiovanettiandJoe Au-Yeung authored and GitHub committed 2023-08-23 20:10:02 +00:00
1 parent 5a6e5ce427
commit 68ec946c59
5 files changed
+24 -6

No files matched your search

@@ -48,7 +48,7 @@ export function subdomainSuffix() {
}
export function getOrgFullDomain(slug: string, options: { protocol: boolean } = { protocol: true }) {
return `${options.protocol ? `${new URL(WEBAPP_URL).protocol}//` : ""}${slug}.${subdomainSuffix()}/`;
return `${options.protocol ? `${new URL(WEBAPP_URL).protocol}//` : ""}${slug}.${subdomainSuffix()}`;
}
export function getSlugOrRequestedSlug(slug: string) {
@@ -57,7 +57,7 @@ const OrgProfileView = () => {
},
async onSuccess() {
await utils.viewer.teams.get.invalidate();
showToast(t("your_organisation_updated_sucessfully"), "success");
showToast(t("your_organization_updated_sucessfully"), "success");
},
});