diff --git a/airbyte-webapp/src/components/connectorBuilder/Builder/AddStreamButton.tsx b/airbyte-webapp/src/components/connectorBuilder/Builder/AddStreamButton.tsx index 274ca47e84d0..6a368fa5b319 100644 --- a/airbyte-webapp/src/components/connectorBuilder/Builder/AddStreamButton.tsx +++ b/airbyte-webapp/src/components/connectorBuilder/Builder/AddStreamButton.tsx @@ -1,5 +1,6 @@ import { Form, Formik, useField } from "formik"; import { useState } from "react"; +import React from "react"; import { FormattedMessage, useIntl } from "react-intl"; import { Button } from "components/ui/Button"; @@ -19,23 +20,29 @@ interface AddStreamValues { interface AddStreamButtonProps { onAddStream: (addedStreamNum: number) => void; + button?: React.ReactElement; + initialValues?: Partial; } -export const AddStreamButton: React.FC = ({ onAddStream }) => { +export const AddStreamButton: React.FC = ({ onAddStream, button, initialValues }) => { const { formatMessage } = useIntl(); const [isOpen, setIsOpen] = useState(false); const [streamsField, , helpers] = useField("streams"); const numStreams = streamsField.value.length; + const buttonClickHandler = () => { + setIsOpen(true); + }; + return ( <> - + } + /> +