comments yey
This commit is contained in:
parent
1dc2c4d3d3
commit
0601f76497
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user