Apply prettier formatting
This commit is contained in:
parent
1cac306093
commit
526645c791
1576 changed files with 65385 additions and 62478 deletions
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue