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

View file

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