From 68a97e5f272413cec87a0ef46457517829dbc097 Mon Sep 17 00:00:00 2001 From: Manuel Ruwe Date: Sun, 11 Dec 2022 17:58:51 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20New=20types=20for=20integration?= =?UTF-8?q?=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Meier Lukas --- .../InputElements/IntegrationSelector.tsx | 46 +-------- .../IntegrationOptionsRenderer.tsx | 64 +++++++----- .../Tabs/IntegrationTab/IntegrationTab.tsx | 2 +- src/types/service.ts | 97 ++++++++++++++----- 4 files changed, 117 insertions(+), 92 deletions(-) diff --git a/src/components/Dashboard/Modals/EditService/Tabs/IntegrationTab/Components/InputElements/IntegrationSelector.tsx b/src/components/Dashboard/Modals/EditService/Tabs/IntegrationTab/Components/InputElements/IntegrationSelector.tsx index 5087f49c7..5b60f778b 100644 --- a/src/components/Dashboard/Modals/EditService/Tabs/IntegrationTab/Components/InputElements/IntegrationSelector.tsx +++ b/src/components/Dashboard/Modals/EditService/Tabs/IntegrationTab/Components/InputElements/IntegrationSelector.tsx @@ -2,7 +2,7 @@ import { Group, Select, SelectItem, Text } from '@mantine/core'; import { UseFormReturnType } from '@mantine/form'; import { useTranslation } from 'next-i18next'; -import { forwardRef, useState } from 'react'; +import { forwardRef } from 'react'; import { ServiceType } from '../../../../../../../../types/service'; interface IntegrationSelectorProps { @@ -46,8 +46,6 @@ export const IntegrationSelector = ({ form }: IntegrationSelectorProps) => { }, ]; - const [selectedItem, setSelectedItem] = useState(); - return ( <>