1+ import { create } from '@bufbuild/protobuf' ;
12import PageContent from 'components/misc/page-content' ;
23import { Button } from 'components/redpanda-ui/components/button' ;
34import { Card , CardContent , CardHeader , CardTitle } from 'components/redpanda-ui/components/card' ;
@@ -6,6 +7,7 @@ import { Heading } from 'components/redpanda-ui/components/typography';
67import { CheckIcon , ChevronLeftIcon , ChevronRightIcon } from 'lucide-react' ;
78import { runInAction } from 'mobx' ;
89import { AnimatePresence } from 'motion/react' ;
10+ import { ComponentSpecSchema } from 'protogen/redpanda/api/dataplane/v1/pipeline_pb' ;
911import { useCallback , useEffect , useMemo , useRef , useState } from 'react' ;
1012import { useListComponentsQuery } from 'react-query/api/connect' ;
1113import { useNavigate , useSearchParams } from 'react-router-dom' ;
@@ -47,7 +49,7 @@ export type ConnectOnboardingWizardProps = {
4749export const ConnectOnboardingWizard = ( {
4850 className,
4951 additionalComponents = [
50- {
52+ create ( ComponentSpecSchema , {
5153 name : 'custom' ,
5254 type : 'custom' ,
5355 status : 0 ,
@@ -57,8 +59,7 @@ export const ConnectOnboardingWizard = ({
5759 version : '' ,
5860 examples : [ ] ,
5961 footnotes : '' ,
60- $typeName : 'redpanda.api.dataplane.v1.ComponentSpec' ,
61- } ,
62+ } ) as ExtendedConnectComponentSpec ,
6263 ] ,
6364 onChange,
6465 onCancel : onCancelProp ,
0 commit comments