diff --git a/apps/remix/app/components/general/folder/folder-grid.tsx b/apps/remix/app/components/general/folder/folder-grid.tsx index a2684c7a2..182c1b81c 100644 --- a/apps/remix/app/components/general/folder/folder-grid.tsx +++ b/apps/remix/app/components/general/folder/folder-grid.tsx @@ -6,6 +6,7 @@ import { FolderIcon, HomeIcon } from 'lucide-react'; import { Link } from 'react-router'; import { useCurrentOrganisation } from '@documenso/lib/client-only/providers/organisation'; +import { IS_ENVELOPES_ENABLED } from '@documenso/lib/constants/app'; import { formatDocumentsPath, formatTemplatesPath } from '@documenso/lib/utils/teams'; import { trpc } from '@documenso/trpc/react'; import { type TFolderWithSubfolders } from '@documenso/trpc/server/folder-router/schema'; @@ -98,7 +99,7 @@ export const FolderGrid = ({ type, parentId }: FolderGridProps) => {
- {organisation.organisationClaim.flags.allowEnvelopes && ( + {(IS_ENVELOPES_ENABLED || organisation.organisationClaim.flags.allowEnvelopes) && ( )} diff --git a/packages/lib/constants/app.ts b/packages/lib/constants/app.ts index 7c2483bfc..5c2f39a65 100644 --- a/packages/lib/constants/app.ts +++ b/packages/lib/constants/app.ts @@ -14,3 +14,5 @@ export const IS_BILLING_ENABLED = () => env('NEXT_PUBLIC_FEATURE_BILLING_ENABLED export const API_V2_BETA_URL = '/api/v2-beta'; export const SUPPORT_EMAIL = env('NEXT_PUBLIC_SUPPORT_EMAIL') ?? 'support@documenso.com'; + +export const IS_ENVELOPES_ENABLED = env('NEXT_PUBLIC_FEATURE_ENVELOPES_ENABLED') === 'true';