diff --git a/webview-ui/src/components/welcome/WelcomeView.tsx b/webview-ui/src/components/welcome/WelcomeView.tsx index 9d57646e81..6fef99ded5 100644 --- a/webview-ui/src/components/welcome/WelcomeView.tsx +++ b/webview-ui/src/components/welcome/WelcomeView.tsx @@ -8,6 +8,7 @@ import ApiOptions from "../settings/ApiOptions" const WelcomeView = () => { const { apiConfiguration } = useExtensionState() const [apiErrorMessage, setApiErrorMessage] = useState(undefined) + const [showApiOptions, setShowApiOptions] = useState(false) const disableLetsGoButton = apiErrorMessage != null @@ -69,11 +70,19 @@ const WelcomeView = () => { -
- - - Let's go! +
+ setShowApiOptions(!showApiOptions)}> + {showApiOptions ? "Hide API options" : "Use your own provider API key"} + + {showApiOptions && ( +
+ + + Let's go! + +
+ )}