feat(pro): remove account type property from proOptions closes #2288
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -230,6 +230,5 @@ export type AttributionPosition =
|
||||
| 'bottom-right';
|
||||
|
||||
export type ProOptions = {
|
||||
account: string;
|
||||
hideAttribution: boolean;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user