Skip to content

Commit

Permalink
feat: Add Separator to FunctionEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
ozhanefemeral committed Aug 2, 2024
1 parent a1cb036 commit 2b55df8
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions apps/next/components/editor/FunctionEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { FunctionCombobox } from "../FunctionCombobox";
import { useCodeGenerator } from "@/contexts/CodeGeneratorContext";
import { Input } from "@ui/input";
import { Button } from "@ui/button";
import { Separator } from "@ui/separator";

export const FunctionEditor: React.FC<{ block: FunctionCallBlock }> = ({
block,
Expand Down Expand Up @@ -63,11 +64,15 @@ export const FunctionEditor: React.FC<{ block: FunctionCallBlock }> = ({
return (
<React.Fragment>
<FunctionCombobox onSelect={handleSelect} />
<Input
value={variableName}
onChange={(e) => setVariableName(e.target.value)}
/>
<Button onClick={handleRename}>Rename</Button>
<Separator orientation="vertical" />
<div className="flex gap-x-2">
<Input
value={variableName}
onChange={(e) => setVariableName(e.target.value)}
/>
<Button onClick={handleRename}>Rename</Button>
</div>
<Separator orientation="vertical" />
</React.Fragment>
);
};

0 comments on commit 2b55df8

Please sign in to comment.