Apply prettier formatting

This commit is contained in:
Michael Weimann 2022-12-12 12:24:14 +01:00
parent 1cac306093
commit 526645c791
No known key found for this signature in database
GPG key ID: 53F535A266BB9584
1576 changed files with 65385 additions and 62478 deletions

View file

@ -1,4 +1,3 @@
/*
Copyright 2022 The Matrix.org Foundation C.I.C.
@ -15,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import React from 'react'; // eslint-disable-line no-unused-vars
import React from "react"; // eslint-disable-line no-unused-vars
//see src/resizer for the actual resizing code, this is just the DOM for the resize handle
interface IResizeHandleProps {
@ -26,17 +25,19 @@ interface IResizeHandleProps {
}
const ResizeHandle: React.FC<IResizeHandleProps> = ({ vertical, reverse, id, passRef }) => {
const classNames = ['mx_ResizeHandle'];
const classNames = ["mx_ResizeHandle"];
if (vertical) {
classNames.push('mx_ResizeHandle_vertical');
classNames.push("mx_ResizeHandle_vertical");
} else {
classNames.push('mx_ResizeHandle_horizontal');
classNames.push("mx_ResizeHandle_horizontal");
}
if (reverse) {
classNames.push('mx_ResizeHandle_reverse');
classNames.push("mx_ResizeHandle_reverse");
}
return (
<div ref={passRef} className={classNames.join(' ')} data-id={id}><div /></div>
<div ref={passRef} className={classNames.join(" ")} data-id={id}>
<div />
</div>
);
};