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
Šimon Brandner 2021-02-25 19:36:55 +01:00
parent 1c48804d96
commit 43e1144ae7
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 1 additions and 3 deletions

View File

@ -150,14 +150,12 @@ export default class AuxPanel extends React.Component<IProps, IState> {
}
render() {
const TintableSvg = sdk.getComponent("elements.TintableSvg");
let fileDropTarget = null;
if (this.props.draggingFile) {
fileDropTarget = (
<div className="mx_RoomView_fileDropTarget">
<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 />
{ _t("Drop file here to upload") }
</div>