Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(playground): do nothing on credential form submit #5128

Merged
merged 1 commit into from
Oct 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions app/src/pages/playground/PlaygroundCredentialsDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,19 @@ export function PlaygroundCredentialsDropdown() {
<DropdownButton size="compact">API Keys</DropdownButton>
<DropdownMenu>
<View padding="size-200">
<Flex direction={"column"} gap={"size-100"}>
<Form
onSubmit={() => {
// TODO: close the dropdown
}}
>
<Heading level={2} weight="heavy">
API Keys
</Heading>
<Text color="text-700">
API keys are stored in your browser and used to communicate with
their respective API&apos;s.
</Text>
<Form>
<Flex direction="column" gap="size-100">
{currentProviders.map((provider) => {
const credentialName = ProviderToCredentialNameMap[provider];
return (
Expand All @@ -66,8 +70,8 @@ export function PlaygroundCredentialsDropdown() {
/>
);
})}
</Form>
</Flex>
</Flex>
</Form>
</View>
</DropdownMenu>
</DropdownTrigger>
Expand Down
Loading