mirror of https://github.com/vector-im/riot-web
Merge pull request #3741 from vector-im/dbkr/remove_unused_droptarget_placeholder
Remove unused `placeholder` prop on RoomDropTargetpull/3742/head
commit
71685b5eab
|
@ -22,20 +22,12 @@ module.exports = React.createClass({
|
||||||
displayName: 'RoomDropTarget',
|
displayName: 'RoomDropTarget',
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
if (this.props.placeholder) {
|
return (
|
||||||
return (
|
<div className="mx_RoomDropTarget">
|
||||||
<div className="mx_RoomDropTarget mx_RoomDropTarget_placeholder">
|
<div className="mx_RoomDropTarget_label">
|
||||||
|
{ this.props.label }
|
||||||
</div>
|
</div>
|
||||||
);
|
</div>
|
||||||
}
|
);
|
||||||
else {
|
|
||||||
return (
|
|
||||||
<div className="mx_RoomDropTarget">
|
|
||||||
<div className="mx_RoomDropTarget_label">
|
|
||||||
{ this.props.label }
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -33,11 +33,6 @@ limitations under the License.
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_RoomDropTarget_placeholder {
|
|
||||||
padding-top: 1px;
|
|
||||||
padding-bottom: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mx_RoomDropTarget_label {
|
.mx_RoomDropTarget_label {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
|
|
Loading…
Reference in New Issue