Minor edits
This commit is contained in:
parent
03885e9958
commit
225da3728f
|
@ -24,6 +24,7 @@ const Comment = props => {
|
||||||
props.onDelete(props.body);
|
props.onDelete(props.body);
|
||||||
setIsMenuVisible(false);
|
setIsMenuVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
const onUpdateComment = evt => {
|
const onUpdateComment = evt => {
|
||||||
props.onUpdate(props.body, { ...props.body, value: evt.target.value });
|
props.onUpdate(props.body, { ...props.body, value: evt.target.value });
|
||||||
}
|
}
|
||||||
|
@ -43,6 +44,7 @@ const Comment = props => {
|
||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
return props.readOnly ? (
|
return props.readOnly ? (
|
||||||
<div className="r6o-widget comment">
|
<div className="r6o-widget comment">
|
||||||
<div className="r6o-readonly-comment">{props.body.value}</div>
|
<div className="r6o-readonly-comment">{props.body.value}</div>
|
||||||
|
@ -57,13 +59,15 @@ const Comment = props => {
|
||||||
onSaveAndClose={props.onSaveAndClose}
|
onSaveAndClose={props.onSaveAndClose}
|
||||||
/>
|
/>
|
||||||
{ creatorInfo }
|
{ creatorInfo }
|
||||||
{ props.purpose == true &&
|
|
||||||
|
{ props.purpose &&
|
||||||
<PurposeDropdown
|
<PurposeDropdown
|
||||||
editable={isEditable}
|
editable={isEditable}
|
||||||
content={props.body.purpose}
|
content={props.body.purpose}
|
||||||
onChange={onUpdateDropdown}
|
onChange={onUpdateDropdown}
|
||||||
onSaveAndClose={props.onSaveAndClose}
|
onSaveAndClose={props.onSaveAndClose}
|
||||||
/> }
|
/> }
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className={isMenuVisible ? "r6o-icon r6o-arrow-down r6o-menu-open" : "r6o-icon r6o-arrow-down"}
|
className={isMenuVisible ? "r6o-icon r6o-arrow-down r6o-menu-open" : "r6o-icon r6o-arrow-down"}
|
||||||
onClick={() => setIsMenuVisible(!isMenuVisible)}>
|
onClick={() => setIsMenuVisible(!isMenuVisible)}>
|
||||||
|
|
Loading…
Reference in New Issue