From 0323fc4890f320d3e956382d70ce10cf3a00a088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20M=C3=B6ller?= Date: Tue, 2 Aug 2022 12:56:28 +0200 Subject: [PATCH] feat(pro): remove account type property from proOptions closes #2288 --- packages/core/src/components/Attribution/index.tsx | 4 +--- packages/core/src/types/general.ts | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/core/src/components/Attribution/index.tsx b/packages/core/src/components/Attribution/index.tsx index 9de6b80a..f4054b14 100644 --- a/packages/core/src/components/Attribution/index.tsx +++ b/packages/core/src/components/Attribution/index.tsx @@ -8,10 +8,8 @@ type AttributionProps = { position?: AttributionPosition; }; -const accounts = ['paid-pro', 'paid-sponsor', 'paid-enterprise', 'paid-custom']; - function Attribution({ proOptions, position = 'bottom-right' }: AttributionProps) { - if (proOptions?.account && accounts.includes(proOptions?.account) && proOptions?.hideAttribution) { + if (proOptions?.hideAttribution) { return null; } diff --git a/packages/core/src/types/general.ts b/packages/core/src/types/general.ts index f894e7a8..f4bade12 100644 --- a/packages/core/src/types/general.ts +++ b/packages/core/src/types/general.ts @@ -230,6 +230,5 @@ export type AttributionPosition = | 'bottom-right'; export type ProOptions = { - account: string; hideAttribution: boolean; };