You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
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>
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user