diff --git a/src/components/Dashboard/Tiles/Widgets/WidgetsEditModal.tsx b/src/components/Dashboard/Tiles/Widgets/WidgetsEditModal.tsx
index 4f7945bb0..e0bb3879b 100644
--- a/src/components/Dashboard/Tiles/Widgets/WidgetsEditModal.tsx
+++ b/src/components/Dashboard/Tiles/Widgets/WidgetsEditModal.tsx
@@ -17,7 +17,7 @@ import {
useMantineTheme,
} from '@mantine/core';
import { ContextModalProps } from '@mantine/modals';
-import { IconAlertTriangle, IconPlaylistX, IconPlus, IconAlertCircle } from '@tabler/icons-react';
+import { IconAlertTriangle, IconPlaylistX, IconPlus, IconInfoCircle } from '@tabler/icons-react';
import { Trans, useTranslation } from 'next-i18next';
import { FC, useState } from 'react';
@@ -136,7 +136,6 @@ const WidgetOptionTypeSwitch: FC<{
handleChange: (key: string, value: IntegrationOptionsValueType) => void;
}> = ({ option, widgetId, propName: key, value, handleChange }) => {
const { t } = useTranslation([`modules/${widgetId}`, 'common']);
- const { colorScheme } = useMantineTheme();
const info = option.info ?? false;
switch (option.type) {
@@ -149,18 +148,7 @@ const WidgetOptionTypeSwitch: FC<{
onChange={(ev) => handleChange(key, ev.currentTarget.checked)}
{...option.inputProps}
/>
- {info &&
-
-
-
- }
+ {info && }
);
case 'text':
@@ -168,18 +156,7 @@ const WidgetOptionTypeSwitch: FC<{
{t(`descriptor.settings.${key}.label`)}
- {info &&
-
-
-
- }
+ {info && }
{t(`descriptor.settings.${key}.label`)}
- {info &&
-
-
-
- }
+ {info && }
handleChange(key, v)}
+ withinPortal
{...option.inputProps}
/>
@@ -220,24 +187,14 @@ const WidgetOptionTypeSwitch: FC<{
{t(`descriptor.settings.${key}.label`)}
- {info &&
-
-
-
- }
+ {info && }
@@ -247,18 +204,7 @@ const WidgetOptionTypeSwitch: FC<{
{t(`descriptor.settings.${key}.label`)}
- {info &&
-
-
-
- }
+ {info && }
{t(`descriptor.settings.${key}.label`)}
- {info &&
-
-
-
- }
+ {info && }
{t(`descriptor.settings.${key}.label`)}
- {info &&
-
-
-
- }
+ {info && }
{t(`descriptor.settings.${key}.label`)}
- {info &&
-
-
-
- }
+ {info && }
({ value: name, label: name }))}
@@ -409,18 +322,7 @@ const WidgetOptionTypeSwitch: FC<{
{t(`descriptor.settings.${key}.label`)}
- {info &&
-
-
-
- }
+ {info && }
({
@@ -462,3 +364,23 @@ const WidgetOptionTypeSwitch: FC<{
return null;
}
};
+
+interface InfoTooltipProps {
+ label: string;
+}
+
+const InfoTooltip = ({ label }: InfoTooltipProps) => {
+ const { colorScheme } =useMantineTheme();
+ return (
+
+
+
+ )
+};
\ No newline at end of file
diff --git a/src/widgets/widgets.ts b/src/widgets/widgets.ts
index 527e83abe..ca843c74a 100644
--- a/src/widgets/widgets.ts
+++ b/src/widgets/widgets.ts
@@ -11,7 +11,6 @@ import React from 'react';
import { AreaType } from '../types/area';
import { ShapeType } from '../types/shape';
-import { boolean } from 'zod';
// Type of widgets which are saved to config
export type IWidget = {