From 8338f1e6594090f9206adaee95e69681bf5eb0b7 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Mon, 30 Jan 2023 14:34:25 +0100 Subject: [PATCH] fix(ui) - removed unnecessary calls --- .../Client/Integrations/Integrations.tsx | 35 ++++++------------- 1 file changed, 10 insertions(+), 25 deletions(-) diff --git a/frontend/app/components/Client/Integrations/Integrations.tsx b/frontend/app/components/Client/Integrations/Integrations.tsx index d1f53f56d..f1851f919 100644 --- a/frontend/app/components/Client/Integrations/Integrations.tsx +++ b/frontend/app/components/Client/Integrations/Integrations.tsx @@ -64,7 +64,7 @@ function Integrations(props: Props) { }, []); const onClick = (integration: any, width: number) => { - if (integration.slug) { + if (integration.slug && integration.slug !== 'slack' && integration.slug !== 'msteams') { props.fetch(integration.slug, props.siteId); } @@ -241,30 +241,15 @@ const integrations = [ description: "Reproduce issues as if they happened in your own browser. Plugins help capture your application's store, HTTP requeets, GraphQL queries, and more.", integrations: [ - { title: 'Redux', slug: 'redux', icon: 'integrations/redux', component: }, - { title: 'VueX', slug: 'vuex', icon: 'integrations/vuejs', component: }, - { title: 'Pinia', slug: 'pinia', icon: 'integrations/pinia', component: }, - { - title: 'GraphQL', - slug: 'graphql', - icon: 'integrations/graphql', - component: , - }, - { title: 'NgRx', slug: 'ngrx', icon: 'integrations/ngrx', component: }, - { title: 'MobX', slug: 'mobx', icon: 'integrations/mobx', component: }, - { - title: 'Profiler', - slug: 'profiler', - icon: 'integrations/openreplay', - component: , - }, - { - title: 'Assist', - slug: 'assist', - icon: 'integrations/openreplay', - component: , - }, - { title: 'Zustand', slug: 'zustand', icon: '', header: '🐻', component: }, + { title: 'Redux', icon: 'integrations/redux', component: }, + { title: 'VueX', icon: 'integrations/vuejs', component: }, + { title: 'Pinia', icon: 'integrations/pinia', component: }, + { title: 'GraphQL', icon: 'integrations/graphql', component: }, + { title: 'NgRx', icon: 'integrations/ngrx', component: }, + { title: 'MobX', icon: 'integrations/mobx', component: }, + { title: 'Profiler', icon: 'integrations/openreplay', component: }, + { title: 'Assist', icon: 'integrations/openreplay', component: }, + { title: 'Zustand', icon: '', header: '🐻', component: }, ], }, ];