@@ -6,7 +6,6 @@ import { OsAlternativesHeroSection } from '../components/alternatives/OsAlternat
66import { EventsSection } from '../components/alternatives/EventsSection' ;
77import StatsCard from '../components/alternatives/StatsCard' ;
88import { DataTableDrawer } from '@/components/ui/DataTableDrawer' ;
9- import { useSelectedCapabilities , useCapabilityActions } from '@/hooks/use-capabilities-config' ;
109import { useQuery } from '@tanstack/react-query' ;
1110import { queryKeys } from '../lib/query-keys' ;
1211import { makeGraphQLRequest } from '../lib/graphql/client' ;
@@ -50,8 +49,6 @@ const GET_ALL_OPEN_SOURCE_APPS = `
5049
5150export function OsAlternativesPageClient ( { slug } : OsAlternativesPageClientProps ) {
5251 const [ drawerOpen , setDrawerOpen ] = useState ( false ) ;
53- const selectedCapabilities = useSelectedCapabilities ( ) ;
54- const { addCapability, removeCapability } = useCapabilityActions ( ) ;
5552
5653 // This data is already prefetched by server, so it loads instantly
5754 const { data : osAlternativesData , error : osAlternativesError } = useOsAlternatives ( slug ) ;
@@ -67,12 +64,6 @@ export function OsAlternativesPageClient({ slug }: OsAlternativesPageClientProps
6764 gcTime : 15 * 60 * 1000 , // 15 minutes
6865 } ) ;
6966
70- const handleSelectedCapabilitiesChange = ( capabilities : any ) => {
71- // This is called when capabilities are changed from the BuildStatsCard - but we use the provider now
72- // The provider will automatically handle the sync through the context
73- console . log ( 'Capability change handled by provider' , capabilities ) ;
74- } ;
75-
7667 // Since data is prefetched, this should never show loading
7768 // But handle error state
7869 if ( osAlternativesError || ! osAlternativesData ) {
@@ -123,8 +114,6 @@ export function OsAlternativesPageClient({ slug }: OsAlternativesPageClientProps
123114 open = { drawerOpen }
124115 onOpenChange = { setDrawerOpen }
125116 apps = { apps }
126- selectedCapabilities = { selectedCapabilities }
127- onSelectedCapabilitiesChange = { handleSelectedCapabilitiesChange }
128117 />
129118 </ div >
130119 ) ;
0 commit comments