Skip to content

Commit

Permalink
Remove Coming Soon on Pay webhooks dashboard event type (#4254)
Browse files Browse the repository at this point in the history
## Problem solved

Removes "Coming Soon" badge - confusing UI

<!-- start pr-codex -->

---

## PR-Codex overview
This PR removes the `Badge` component from the `CreateWebhookButton` in `webhooks.client.tsx`.

### Detailed summary
- Removed the `Badge` component from the form field in the `CreateWebhookButton`.
- Updated the `FormLabel` to remove the "Coming Soon" text.
- Adjusted the `Select` component with a default value and placeholder.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
  • Loading branch information
edwardysun committed Aug 22, 2024
1 parent 6b9bfb6 commit 86d2baf
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { CopyTextButton } from "@/components/ui/CopyTextButton";
import { Spinner } from "@/components/ui/Spinner/Spinner";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import {
Dialog,
Expand Down Expand Up @@ -247,9 +246,7 @@ function CreateWebhookButton(props: PropsWithChildren<WebhooksPageProps>) {

{/* Note: this is a "fake" form field since there is nothing to select yet */}
<FormItem>
<FormLabel>
Event Type <Badge variant="outline">Coming Soon</Badge>
</FormLabel>
<FormLabel>Event Type</FormLabel>
<Select disabled defaultValue="purchase_complete">
<SelectTrigger className="w-full">
<SelectValue placeholder="Purchase Complete" />
Expand Down

0 comments on commit 86d2baf

Please sign in to comment.