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: theme updates for workflows #672

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
2 changes: 1 addition & 1 deletion ui/admin/app/components/workflow/ParamsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function ParamsForm({
))}

<Button
variant="secondary"
variant="ghost"
className="self-end"
startContent={<PlusIcon />}
onClick={() =>
Expand Down
5 changes: 3 additions & 2 deletions ui/admin/app/components/workflow/steps/AddStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ type StepType = "regular" | "if" | "while" | "template";

interface AddStepButtonProps {
onAddStep: (newStep: Step) => void;
className?: string;
}

export function AddStepButton({ onAddStep }: AddStepButtonProps) {
export function AddStepButton({ onAddStep, className }: AddStepButtonProps) {
const [open, setOpen] = useState(false);
const [isTemplateModalOpen, setIsTemplateModalOpen] = useState(false);

Expand Down Expand Up @@ -91,7 +92,7 @@ export function AddStepButton({ onAddStep }: AddStepButtonProps) {
<>
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<Button variant="secondary">
<Button variant="ghost" className={className}>
<Plus className="w-4 h-4 mr-2" /> Add
</Button>
</PopoverTrigger>
Expand Down
1 change: 1 addition & 0 deletions ui/admin/app/components/workflow/steps/StepsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export function StepsForm({
)}
</div>
<AddStepButton
className="float-end"
onAddStep={(newStep) => {
field.onChange([...field.value, newStep]);
}}
Expand Down