fix comment style
This commit is contained in:
@@ -25,12 +25,12 @@ class OrderComments extends Component {
|
|||||||
this.setState({newComment});
|
this.setState({newComment});
|
||||||
}
|
}
|
||||||
|
|
||||||
getOffset(username){
|
getOffset(isOwner){
|
||||||
return (username === localStorage.getItem('username')) ? 6 : 0;
|
return (isOwner) ? 6 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
getClassByOwner(username){
|
getClassByOwner(isOwner){
|
||||||
return (username === localStorage.getItem('username')) ? 'mine' : '';
|
return (isOwner) ? 'mine' : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|||||||
Reference in New Issue
Block a user