chore(attribution): update options

This commit is contained in:
moklick
2022-03-06 15:14:14 +01:00
parent 466a0afd36
commit 64a3c2d48a
3 changed files with 8 additions and 5 deletions
+5 -2
View File
@@ -9,7 +9,10 @@ type AttributionProps = {
};
function Attribution({ proOptions, position = 'bottom-right' }: AttributionProps) {
if (proOptions?.account === 'paid-subscription' && proOptions?.hideAttribution) {
if (
(proOptions?.account === 'paid-starter' || proOptions?.account === 'paid-enterprise') &&
proOptions?.hideAttribution
) {
return null;
}
@@ -18,7 +21,7 @@ function Attribution({ proOptions, position = 'bottom-right' }: AttributionProps
return (
<div
className={cc(['react-flow__attribution', ...positionClasses])}
data-message="Please only hide this attribution when you have a pro account: reactflow.dev/pro"
data-message="Please only hide this attribution when you have a pro account: https://pro.reactflow.dev/plans"
>
<a href="https://reactflow.dev" target="_blank" rel="noopener noreferrer">
React Flow