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.Panel header="Comment" itemKey="1">
<Form>
<Form
onChange={(value) => {
const updatedTables = [...props.tables];
updatedTables[i] = {
...t,
...value.values,
};
props.setTables(updatedTables);
}}
>
<Form.TextArea
field="comment"
noLabel={true}
showClear
onClear={() => {
const updatedTables = [...props.tables];
updatedTables[i] = {
...t,
comment: "",
};
props.setTables(updatedTables);
}}
initValue={t.comment}
autosize
placeholder="Add comment"