Remove obsolete offset and styling

This commit is contained in:
Chi Vinh Le
2017-04-21 00:45:00 +07:00
parent f3f1cc53fe
commit 6df2103da3
8 changed files with 13 additions and 27 deletions
+1 -2
View File
@@ -25,8 +25,7 @@ class FlagButton extends Component {
const {localPost, localDelete} = this.state;
const flagged = (flag && flag.current_user && !localDelete) || localPost;
if (!currentUser) {
const offset = document.getElementById(`c_${this.props.id}`).getBoundingClientRect().top - 75;
this.props.showSignInDialog(offset);
this.props.showSignInDialog();
return;
}
if (flagged) {