From 64a3c2d48a72115a0d423da752328da35cd861cd Mon Sep 17 00:00:00 2001 From: moklick Date: Sun, 6 Mar 2022 15:14:14 +0100 Subject: [PATCH] chore(attribution): update options --- package-lock.json | 4 ++-- package.json | 2 +- src/components/Attribution/index.tsx | 7 +++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4840a44f..7cac6f69 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "react-flow-renderer", - "version": "10.0.0-next.50", + "version": "10.0.0-next.51", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "react-flow-renderer", - "version": "10.0.0-next.50", + "version": "10.0.0-next.51", "license": "MIT", "dependencies": { "@babel/runtime": "^7.16.7", diff --git a/package.json b/package.json index f7dda2f0..ae37af51 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-flow-renderer", - "version": "10.0.0-next.50", + "version": "10.0.0-next.51", "engines": { "node": ">=12" }, diff --git a/src/components/Attribution/index.tsx b/src/components/Attribution/index.tsx index b87375c6..2fcb9df1 100644 --- a/src/components/Attribution/index.tsx +++ b/src/components/Attribution/index.tsx @@ -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 (
React Flow