comments yey

This commit is contained in:
1ilit 2023-09-19 15:47:57 +03:00
parent 1dc2c4d3d3
commit 0601f76497

View File

@ -333,10 +333,28 @@ export default function DiagramOverview(props) {
> >
<Collapse> <Collapse>
<Collapse.Panel header="Comment" itemKey="1"> <Collapse.Panel header="Comment" itemKey="1">
<Form> <Form
onChange={(value) => {
const updatedTables = [...props.tables];
updatedTables[i] = {
...t,
...value.values,
};
props.setTables(updatedTables);
}}
>
<Form.TextArea <Form.TextArea
field="comment" field="comment"
noLabel={true} noLabel={true}
showClear
onClear={() => {
const updatedTables = [...props.tables];
updatedTables[i] = {
...t,
comment: "",
};
props.setTables(updatedTables);
}}
initValue={t.comment} initValue={t.comment}
autosize autosize
placeholder="Add comment" placeholder="Add comment"