FIxed spacing and export modal not working

This commit is contained in:
Lucas Oliveira 2023-06-14 13:01:41 -03:00
commit 99fa125b91
2 changed files with 5 additions and 3 deletions

View file

@ -51,7 +51,7 @@ export const EditFlowSettings: React.FC<InputProps> = ({
};
return (
<div>
<>
<Label>
<div className="flex justify-between">
<span className="font-medium">Name</span>{" "}
@ -84,7 +84,7 @@ export const EditFlowSettings: React.FC<InputProps> = ({
rows={3}
/>
</Label>
</div>
</>
);
};

View file

@ -18,6 +18,8 @@ import { Checkbox } from "../../components/ui/checkbox";
import { EXPORT_DIALOG_SUBTITLE } from "../../constants";
import EditFlowSettings from "../../components/nameInputComponent";
import { Label } from "../../components/ui/label";
import { Input } from "../../components/ui/input";
import { Textarea } from "../../components/ui/textarea";
export default function ExportModal() {
const [open, setOpen] = useState(true);
@ -61,7 +63,7 @@ export default function ExportModal() {
className="mt-2 focus-visible:ring-1"
onChange={(event) => {
if (event.target.value != "") {
let newFlow = flows[tabIndex];
let newFlow = flows.find((f) => f.id === tabId);
newFlow.name = event.target.value;
setName(event.target.value);
updateFlow(newFlow);