
* Adds available apps * Adds App Model * WIP * Updates seeder script * Seeder fixes * lowercase categories * Upgrades prisma * WIP * WIP * Hopefully fixes circular deps * Type fixes * Fixes seeder * Adds migration to connect Credentials to Apps * Updates app store callbacks * Updates google credentials * Uses dirName from DB * Type fixes * Update reschedule.ts * Seeder fixes * Fixes categories listing * Update index.ts * Update schema.prisma * Updates dependencies * Renames giphy app * Uses dynamic imports for app metadata * Fixes credentials error * Uses dynamic import for api handlers * Dynamic import fixes * Allows for simple folder names in app store * Squashes app migrations * seeder fixes * Fixes dyamic imports * Update apiHandlers.tsx
12 lines
420 B
TypeScript
12 lines
420 B
TypeScript
import { UserPlan } from "@prisma/client";
|
|
|
|
/**
|
|
* TODO: It should be exposed at a single place.
|
|
*/
|
|
export function useExposePlanGlobally(plan: UserPlan) {
|
|
// Don't wait for component to mount. Do it ASAP. Delaying it would delay UI Configuration.
|
|
if (typeof window !== "undefined") {
|
|
// This variable is used by embed-iframe to determine if we should allow UI configuration
|
|
window.CalComPlan = plan;
|
|
}
|
|
}
|