chore(attribution): update options
This commit is contained in:
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "react-flow-renderer",
|
"name": "react-flow-renderer",
|
||||||
"version": "10.0.0-next.50",
|
"version": "10.0.0-next.51",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "react-flow-renderer",
|
"name": "react-flow-renderer",
|
||||||
"version": "10.0.0-next.50",
|
"version": "10.0.0-next.51",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.7",
|
"@babel/runtime": "^7.16.7",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-flow-renderer",
|
"name": "react-flow-renderer",
|
||||||
"version": "10.0.0-next.50",
|
"version": "10.0.0-next.51",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,7 +9,10 @@ type AttributionProps = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function Attribution({ proOptions, position = 'bottom-right' }: 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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -18,7 +21,7 @@ function Attribution({ proOptions, position = 'bottom-right' }: AttributionProps
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cc(['react-flow__attribution', ...positionClasses])}
|
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">
|
<a href="https://reactflow.dev" target="_blank" rel="noopener noreferrer">
|
||||||
React Flow
|
React Flow
|
||||||
|
|||||||
Reference in New Issue
Block a user