Skip to content

Commit 1cd29e0

Browse files
committed
feat: andres comment
1 parent 9d17e4f commit 1cd29e0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

frontend/src/components/pages/rp-connect/onboarding/onboarding-wizard.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { create } from '@bufbuild/protobuf';
12
import PageContent from 'components/misc/page-content';
23
import { Button } from 'components/redpanda-ui/components/button';
34
import { Card, CardContent, CardHeader, CardTitle } from 'components/redpanda-ui/components/card';
@@ -6,6 +7,7 @@ import { Heading } from 'components/redpanda-ui/components/typography';
67
import { CheckIcon, ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';
78
import { runInAction } from 'mobx';
89
import { AnimatePresence } from 'motion/react';
10+
import { ComponentSpecSchema } from 'protogen/redpanda/api/dataplane/v1/pipeline_pb';
911
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
1012
import { useListComponentsQuery } from 'react-query/api/connect';
1113
import { useNavigate, useSearchParams } from 'react-router-dom';
@@ -47,7 +49,7 @@ export type ConnectOnboardingWizardProps = {
4749
export 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

Comments
 (0)