Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export function FillVariablesDialog({
</Button>
<InjectSplitButton
disabled={requiredMissing || isPending}
isPending={isPending}
onInject={onInject}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,17 @@ import { cn } from "@/lib/utils";

export function InjectSplitButton({
disabled,
isPending,
onInject,
size = "default",
insidePopover = false,
}: {
disabled: boolean;
isPending: boolean;
onInject: (submit: boolean) => void;
size?: "sm" | "default";
insidePopover?: boolean;
}) {
const isSm = size === "sm";
const label = isSm ? "Send" : "Send & Submit";

return (
<div className={cn("flex items-stretch", isSm && "min-w-[5.5rem]")}>
Expand All @@ -41,7 +40,7 @@ export function InjectSplitButton({
}
>
{isSm ? <Play className="h-2.5 w-2.5 fill-current" /> : null}
{isPending ? "Sending…" : isSm ? "Send" : "Send & Submit"}
{label}
</Button>
<DropdownMenu>
<DropdownMenuTrigger asChild>
Expand Down
1 change: 0 additions & 1 deletion apps/web/src/components/app/quick-phrases/phrase-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export function PhraseRow({
) : (
<InjectSplitButton
disabled={isPending}
isPending={isPending}
onInject={onInject}
size="sm"
insidePopover
Expand Down