Skip to content

Commit

Permalink
Merge pull request #3741 from vector-im/dbkr/remove_unused_droptarget…
Browse files Browse the repository at this point in the history
…_placeholder

Remove unused `placeholder` prop on RoomDropTarget
  • Loading branch information
lukebarnard1 committed Apr 26, 2017
2 parents c070e86 + 7b3719b commit 71685b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
20 changes: 6 additions & 14 deletions src/components/views/rooms/RoomDropTarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,12 @@ module.exports = React.createClass({
displayName: 'RoomDropTarget',

render: function() {
if (this.props.placeholder) {
return (
<div className="mx_RoomDropTarget mx_RoomDropTarget_placeholder">
return (
<div className="mx_RoomDropTarget">
<div className="mx_RoomDropTarget_label">
{ this.props.label }
</div>
);
}
else {
return (
<div className="mx_RoomDropTarget">
<div className="mx_RoomDropTarget_label">
{ this.props.label }
</div>
</div>
);
}
</div>
);
}
});
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ limitations under the License.
margin-left: 10px;
}

.mx_RoomDropTarget_placeholder {
padding-top: 1px;
padding-bottom: 1px;
}

.mx_RoomDropTarget_label {
position: relative;
margin-top: 3px;
Expand Down

0 comments on commit 71685b5

Please sign in to comment.