From eb5db401967afd8d92225fd0635a3018139aafed Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Mon, 14 Jul 2025 16:07:22 -0600 Subject: [PATCH] is fetched check --- .../integrations/SlackIntegrations.tsx | 24 +++---------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/apps/web/src/components/features/integrations/SlackIntegrations.tsx b/apps/web/src/components/features/integrations/SlackIntegrations.tsx index 6e962c44b..77b890f15 100644 --- a/apps/web/src/components/features/integrations/SlackIntegrations.tsx +++ b/apps/web/src/components/features/integrations/SlackIntegrations.tsx @@ -17,32 +17,14 @@ import { LinkSlash, Refresh2 } from '@/components/ui/icons'; import { useMemoizedFn } from '@/hooks'; import pluralize from 'pluralize'; import { StatusCard } from '@/components/ui/card/StatusCard'; -import type { GetChannelsResponse, GetIntegrationResponse } from '@buster/server-shared/slack'; export const SlackIntegrations = React.memo(() => { const { - // data: slackIntegration, - // isFetched: isFetchedSlackIntegration, - // error: slackIntegrationError + data: slackIntegration, + isFetched: isFetchedSlackIntegration, + error: slackIntegrationError } = useGetSlackIntegration(); - const slackIntegration: GetIntegrationResponse = { - connected: true, - integration: { - id: '123', - team_name: 'Test Team', - installed_at: '2021-01-01', - team_domain: 'test-team', - last_used_at: '2021-01-01', - default_channel: { - id: '123', - name: 'Test Channel' - } - } - }; - const slackIntegrationError = null; - const isFetchedSlackIntegration = true; - const isConnected = slackIntegration?.connected ?? false; const cards = useMemo(() => {