mirror of https://github.com/vector-im/riot-web
Don't use TintableSVG
This seemed to have caused a little lag and it was unnecessary Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
1c48804d96
commit
43e1144ae7
|
@ -150,14 +150,12 @@ export default class AuxPanel extends React.Component<IProps, IState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const TintableSvg = sdk.getComponent("elements.TintableSvg");
|
|
||||||
|
|
||||||
let fileDropTarget = null;
|
let fileDropTarget = null;
|
||||||
if (this.props.draggingFile) {
|
if (this.props.draggingFile) {
|
||||||
fileDropTarget = (
|
fileDropTarget = (
|
||||||
<div className="mx_RoomView_fileDropTarget">
|
<div className="mx_RoomView_fileDropTarget">
|
||||||
<div title={_t("Drop File Here")}>
|
<div title={_t("Drop File Here")}>
|
||||||
<TintableSvg src={require("../../../../res/img/upload-big.svg")} width="45" height="59" />
|
<img src={require( "../../../../res/img/upload-big.svg")}> </img>
|
||||||
<br />
|
<br />
|
||||||
{ _t("Drop file here to upload") }
|
{ _t("Drop file here to upload") }
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue