feat(pro): remove account type property from proOptions closes #2288
This commit is contained in:
@@ -8,10 +8,8 @@ type AttributionProps = {
|
|||||||
position?: AttributionPosition;
|
position?: AttributionPosition;
|
||||||
};
|
};
|
||||||
|
|
||||||
const accounts = ['paid-pro', 'paid-sponsor', 'paid-enterprise', 'paid-custom'];
|
|
||||||
|
|
||||||
function Attribution({ proOptions, position = 'bottom-right' }: AttributionProps) {
|
function Attribution({ proOptions, position = 'bottom-right' }: AttributionProps) {
|
||||||
if (proOptions?.account && accounts.includes(proOptions?.account) && proOptions?.hideAttribution) {
|
if (proOptions?.hideAttribution) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -230,6 +230,5 @@ export type AttributionPosition =
|
|||||||
| 'bottom-right';
|
| 'bottom-right';
|
||||||
|
|
||||||
export type ProOptions = {
|
export type ProOptions = {
|
||||||
account: string;
|
|
||||||
hideAttribution: boolean;
|
hideAttribution: boolean;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user