* fix timezone display on booking page to reflect event availability timezone * migrate fetching event owner's schedule to server side * migrate fetching event owner's schedule to server side * fix e2e test errors * Add WEBAPP_URL_FOR_OAUTH to salesforce auth * In event manager constructor include "_crm" credentials as calendar creds * Change crm apps to type to end with `_crm` * Move sendgrid out of CRM * Add zoho bigin to CRM apps * When getting apps, use slug * Add `crm` variants * Hubspot Oauth use `WEBAPP_URL_FOR_OAUTH` * Refactor creating credentials * Fix empty CRM page * Use credentials with `_crm` * Abstract getAppCategoryTitle * Add integration.handler changes * Fix tests * Type fix --------- Co-authored-by: Shaik-Sirajuddin <sirajuddinshaik30gmail.com> Co-authored-by: Shaik-Sirajuddin <sirajudddinshaik30@gmail.com> Co-authored-by: Shaik-Sirajuddin <89742297+Shaik-Sirajuddin@users.noreply.github.com> Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com>
23 lines
590 B
TypeScript
23 lines
590 B
TypeScript
import type { AppCategories } from "@calcom/prisma/enums";
|
|
|
|
/**
|
|
* Handles if the app category should be full capitalized ex. CRM
|
|
*
|
|
* @param {App["variant"]} variant - The variant of the app.
|
|
* @param {boolean} [returnLowerCase] - Optional flag to return the title in lowercase.
|
|
*/
|
|
const getAppCategoryTitle = (variant: AppCategories, returnLowerCase?: boolean) => {
|
|
let title: string;
|
|
|
|
if (variant === "crm") {
|
|
title = "CRM";
|
|
return title;
|
|
} else {
|
|
title = variant;
|
|
}
|
|
|
|
return returnLowerCase ? title.toLowerCase() : title;
|
|
};
|
|
|
|
export default getAppCategoryTitle;
|