diff --git a/src/components/Dashboard/Tiles/Widgets/WidgetsEditModal.tsx b/src/components/Dashboard/Tiles/Widgets/WidgetsEditModal.tsx index 2737b3f4d..e6b92a176 100644 --- a/src/components/Dashboard/Tiles/Widgets/WidgetsEditModal.tsx +++ b/src/components/Dashboard/Tiles/Widgets/WidgetsEditModal.tsx @@ -136,7 +136,7 @@ const WidgetOptionTypeSwitch: FC<{ handleChange: (key: string, value: IntegrationOptionsValueType) => void; }> = ({ option, widgetId, propName: key, value, handleChange }) => { const { t } = useTranslation([`modules/${widgetId}`, 'common']); - const { fn, colorScheme } = useMantineTheme(); + const { colorScheme } = useMantineTheme(); switch (option.type) { case 'switch': @@ -155,7 +155,7 @@ const WidgetOptionTypeSwitch: FC<{ position="right-start" c={ colorScheme === 'light' ? "black" : "dark.0" } color={ colorScheme === 'light' ? "dark.0" : "dark.6" } - width={300} + styles={{ tooltip: { '&': { maxWidth: 300, }, }, }} multiline > @@ -175,7 +175,7 @@ const WidgetOptionTypeSwitch: FC<{ position="right-start" c={ colorScheme === 'light' ? "black" : "dark.0" } color={ colorScheme === 'light' ? "dark.0" : "dark.6" } - width={300} + styles={{ tooltip: { '&': { maxWidth: 300, }, }, }} multiline > @@ -201,7 +201,7 @@ const WidgetOptionTypeSwitch: FC<{ position="right-start" c={ colorScheme === 'light' ? "black" : "dark.0" } color={ colorScheme === 'light' ? "dark.0" : "dark.6" } - width={300} + styles={{ tooltip: { '&': { maxWidth: 300, }, }, }} multiline > @@ -229,7 +229,7 @@ const WidgetOptionTypeSwitch: FC<{ position="right-start" c={ colorScheme === 'light' ? "black" : "dark.0" } color={ colorScheme === 'light' ? "dark.0" : "dark.6" } - width={300} + styles={{ tooltip: { '&': { maxWidth: 300, }, }, }} multiline > @@ -257,7 +257,7 @@ const WidgetOptionTypeSwitch: FC<{ position="right-start" c={ colorScheme === 'light' ? "black" : "dark.0" } color={ colorScheme === 'light' ? "dark.0" : "dark.6" } - width={300} + styles={{ tooltip: { '&': { maxWidth: 300, }, }, }} multiline > @@ -283,7 +283,7 @@ const WidgetOptionTypeSwitch: FC<{ position="right-start" c={ colorScheme === 'light' ? "black" : "dark.0" } color={ colorScheme === 'light' ? "dark.0" : "dark.6" } - width={300} + styles={{ tooltip: { '&': { maxWidth: 300, }, }, }} multiline > @@ -345,7 +345,7 @@ const WidgetOptionTypeSwitch: FC<{ position="right-start" c={ colorScheme === 'light' ? "black" : "dark.0" } color={ colorScheme === 'light' ? "dark.0" : "dark.6" } - width={300} + styles={{ tooltip: { '&': { maxWidth: 300, }, }, }} multiline > @@ -386,7 +386,7 @@ const WidgetOptionTypeSwitch: FC<{ position="right-start" c={ colorScheme === 'light' ? "black" : "dark.0" } color={ colorScheme === 'light' ? "dark.0" : "dark.6" } - width={300} + styles={{ tooltip: { '&': { maxWidth: 300, }, }, }} multiline > @@ -423,7 +423,7 @@ const WidgetOptionTypeSwitch: FC<{ position="right-start" c={ colorScheme === 'light' ? "black" : "dark.0" } color={ colorScheme === 'light' ? "dark.0" : "dark.6" } - width={300} + styles={{ tooltip: { '&': { maxWidth: 300, }, }, }} multiline >