1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-11 20:22:36 +03:00

Remove name

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-02-24 07:50:10 +01:00
parent d85ab382f5
commit 05e9019bc9

View File

@@ -124,14 +124,6 @@ export default class ImageView extends React.Component {
}); });
}; };
getName() {
let name = this.props.name;
if (name && this.props.link) {
name = <a href={ this.props.link } target="_blank" rel="noreferrer noopener">{ name }</a>;
}
return name;
}
onRotateCounterClockwiseClick = () => { onRotateCounterClockwiseClick = () => {
const cur = this.state.rotation; const cur = this.state.rotation;
const rotationDegrees = (cur - 90) % 360; const rotationDegrees = (cur - 90) % 360;
@@ -286,9 +278,6 @@ export default class ImageView extends React.Component {
<div className="mx_ImageView_content"> <div className="mx_ImageView_content">
<div className="mx_ImageView_panel"> <div className="mx_ImageView_panel">
<div className="mx_ImageView_label"> <div className="mx_ImageView_label">
<div className="mx_ImageView_name">
{ this.getName() }
</div>
<span>{ sizeRes }</span> <span>{ sizeRes }</span>
{ metadata } { metadata }
</div> </div>