* fix: replace filter implementations on /insights * add authorization for teamIds * replace all the implementations * provide eventTypeId * remove log * fix teamId for isAll * fix Download button * remove legacy implementations * clean up * nullish check * remove unusable filters * revert style * fix type error * fix e2e test * fix type error * fix type error * fix e2e * extract util method * fix type error * fix type error * fix type error --------- Co-authored-by: Benny Joo <sldisek783@gmail.com>
10 lines
309 B
TypeScript
10 lines
309 B
TypeScript
import type { BookingStatus } from "@calcom/prisma/enums";
|
|
|
|
// Upper case the first letter of each word and replace underscores with spaces
|
|
export function bookingStatusToText(status: BookingStatus) {
|
|
return status
|
|
.toLowerCase()
|
|
.replace(/_/g, " ")
|
|
.replace(/\b\w/g, (c) => c.toUpperCase());
|
|
}
|