Skip to content

Commit

Permalink
fix: theme updates for workflows (#672)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Hopper-Lowe <[email protected]>
  • Loading branch information
ryanhopperlowe authored Nov 25, 2024
1 parent 9d9f8b9 commit e4c4807
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
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

0 comments on commit e4c4807

Please sign in to comment.