- {!!nonRequiredConsents.length && (
- <>
-
-
- To improve your experience, we use third party tools in RedisInsight. All data collected
- are completely anonymized, but we will not use these data for any purpose that you do
- not consent to.
-
-
- >
- )}
- {
- nonRequiredConsents
- .map((consent: IConsent) => renderConsentOption(consent, nonRequiredConsents.length > 1))
- }
-
- {!liveEditMode && (
- <>
-
- While adding new plugins for Workbench, use files only from trusted authors
- to avoid automatic execution of malicious code.
-
-
- >
- )}
-
+
+ {!!nonRequiredConsents.length && (
+ <>
+
+
+ To improve your experience, we use third party tools in RedisInsight. All data collected
+ are completely anonymized, but we will not use these data for any purpose that you do
+ not consent to.
+
+
+ >
+ )}
+ {
+ nonRequiredConsents
+ .map((consent: IConsent) => renderConsentOption(consent, nonRequiredConsents.length > 1))
+ }
+
+ {!liveEditMode && (
+ <>
+
+
+ While adding new visualization plugins, use files only from trusted authors
+ to avoid automatic execution of malicious code.
+
+
+
+ >
+ )}
+
{!!requiredConsents.length && (
<>
+
To use RedisInsight, please accept the terms and conditions:
@@ -185,39 +191,42 @@ const ConsentsSettings = ({ liveEditMode = false }: Props) => {
)}
{requiredConsents.map((consent: IConsent) => renderConsentOption(consent))}
+
{!liveEditMode && (
-
-
-
-
- {Object.values(errors).map((err) => [
- spec?.agreements[err as string]?.requiredText,
-
,
- ])}
-
- ) : null
- }
- >
- {}}
- disabled={submitIsDisabled()}
- iconType={submitIsDisabled() ? 'iInCircle' : undefined}
- data-testid="btn-submit"
+ <>
+ {!requiredConsents.length && ()}
+
+
+
+ {Object.values(errors).map((err) => [
+ spec?.agreements[err as string]?.requiredText,
+
,
+ ])}
+
+ ) : null
+ }
>
- Submit
-
-
-
-
+ {}}
+ disabled={submitIsDisabled()}
+ iconType={submitIsDisabled() ? 'iInCircle' : undefined}
+ data-testid="btn-submit"
+ >
+ Submit
+
+
+
+
+ >
)}
)
diff --git a/redisinsight/ui/src/components/consents-settings/ConsentsSettingsPopup/ConsentsSettingsPopup.tsx b/redisinsight/ui/src/components/consents-settings/ConsentsSettingsPopup/ConsentsSettingsPopup.tsx
index de51924dd5..ec5183f101 100644
--- a/redisinsight/ui/src/components/consents-settings/ConsentsSettingsPopup/ConsentsSettingsPopup.tsx
+++ b/redisinsight/ui/src/components/consents-settings/ConsentsSettingsPopup/ConsentsSettingsPopup.tsx
@@ -8,8 +8,6 @@ import {
EuiFlexGroup,
EuiFlexItem,
EuiTitle,
- EuiSpacer,
- EuiText,
} from '@elastic/eui'
import { Theme } from 'uiSrc/constants'
@@ -35,7 +33,12 @@ const ConsentsSettingsPopup = () => {