diff --git a/src/components/Dashboard/Tiles/Widgets/Inputs/AppSelector.tsx b/src/components/Dashboard/Tiles/Widgets/Inputs/AppSelector.tsx index 13663d1aabe..d3c044fa126 100644 --- a/src/components/Dashboard/Tiles/Widgets/Inputs/AppSelector.tsx +++ b/src/components/Dashboard/Tiles/Widgets/Inputs/AppSelector.tsx @@ -1,34 +1,37 @@ import { Group, Select, Text } from '@mantine/core'; +import { ComponentProps, forwardRef } from 'react'; +import { AppAvatar } from '~/components/AppAvatar'; import { useConfigContext } from '~/config/provider'; import { IntegrationType } from '~/types/app'; -import { AppAvatar } from '~/components/AppAvatar'; -import { ComponentProps, forwardRef } from 'react'; export type AppSelectorProps = { value: string; onChange: (value: string) => void; integrations: IntegrationType[]; selectProps?: Omit, 'value' | 'data' | 'onChange'>; -} +}; export function AppSelector(props: AppSelectorProps) { const { value, integrations, onChange } = props; const { config } = useConfigContext(); - const apps = config?.apps.filter((app) => app.integration.type && integrations.includes(app.integration.type)) ?? []; - const selectedApp = apps.find(app => app.id === value); + const apps = + config?.apps.filter( + (app) => app.integration.type && integrations.includes(app.integration.type) + ) ?? []; + const selectedApp = apps.find((app) => app.id === value); return (