feat(pro): remove account type property from proOptions closes #2288

This commit is contained in:
Christopher Möller
2022-08-02 12:56:28 +02:00
parent 8fe0b97776
commit 0323fc4890
2 changed files with 1 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -230,6 +230,5 @@ export type AttributionPosition =
| 'bottom-right';
export type ProOptions = {
account: string;
hideAttribution: boolean;
};