From 6173c206165ef65cced5df26c800bdfbc40652bd Mon Sep 17 00:00:00 2001 From: ajnart Date: Thu, 26 May 2022 21:06:44 +0200 Subject: [PATCH] :label: Update types for AppShelfMenu --- src/components/AppShelf/AppShelfMenu.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/AppShelf/AppShelfMenu.tsx b/src/components/AppShelf/AppShelfMenu.tsx index 03fa4c421..03eb6ca71 100644 --- a/src/components/AppShelf/AppShelfMenu.tsx +++ b/src/components/AppShelf/AppShelfMenu.tsx @@ -3,10 +3,11 @@ import { showNotification } from '@mantine/notifications'; import { useState } from 'react'; import { Check, Edit, Trash } from 'tabler-icons-react'; import { useConfig } from '../../tools/state'; +import { serviceItem } from '../../tools/types'; import { AddAppShelfItemForm } from './AddAppShelfItem'; export default function AppShelfMenu(props: any) { - const { service } = props; + const { service }: { service: serviceItem } = props; const { config, setConfig } = useConfig(); const theme = useMantineTheme(); const [opened, setOpened] = useState(false); @@ -27,7 +28,7 @@ export default function AppShelfMenu(props: any) { url={service.url} icon={service.icon} apiKey={service.apiKey} - login={service.login} + username={service.username} password={service.password} message="Save service" />