From 62569e209e063ae1ce59e1851cceac975e7b816b Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Wed, 3 May 2023 12:25:33 +0000 Subject: [PATCH] Remove unused prop from ResizeHandle - reverse (#10771) It was added by 928b6d47c8449b1b784e4ea04606085ab8dc446c and soon deprecated by e5d1b3328c509ff86c7c023aa10d12ec521de13b --- src/components/structures/LoggedInView.tsx | 1 - src/components/views/elements/ResizeHandle.tsx | 6 +----- src/components/views/rooms/AppsDrawer.tsx | 3 +-- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/components/structures/LoggedInView.tsx b/src/components/structures/LoggedInView.tsx index fb3cb8e291..0acfef92c1 100644 --- a/src/components/structures/LoggedInView.tsx +++ b/src/components/structures/LoggedInView.tsx @@ -265,7 +265,6 @@ class LoggedInView extends React.Component { resizer.setClassNames({ handle: "mx_ResizeHandle", vertical: "mx_ResizeHandle_vertical", - reverse: "mx_ResizeHandle_reverse", }); return resizer; } diff --git a/src/components/views/elements/ResizeHandle.tsx b/src/components/views/elements/ResizeHandle.tsx index 10dba1b735..c3609f3129 100644 --- a/src/components/views/elements/ResizeHandle.tsx +++ b/src/components/views/elements/ResizeHandle.tsx @@ -19,21 +19,17 @@ 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 { vertical?: boolean; - reverse?: boolean; id?: string; passRef?: React.RefObject; } -const ResizeHandle: React.FC = ({ vertical, reverse, id, passRef }) => { +const ResizeHandle: React.FC = ({ vertical, id, passRef }) => { const classNames = ["mx_ResizeHandle"]; if (vertical) { classNames.push("mx_ResizeHandle_vertical"); } else { classNames.push("mx_ResizeHandle_horizontal"); } - if (reverse) { - classNames.push("mx_ResizeHandle_reverse"); - } return (
diff --git a/src/components/views/rooms/AppsDrawer.tsx b/src/components/views/rooms/AppsDrawer.tsx index cd5e9bc889..bf4e0fb0ac 100644 --- a/src/components/views/rooms/AppsDrawer.tsx +++ b/src/components/views/rooms/AppsDrawer.tsx @@ -110,7 +110,6 @@ export default class AppsDrawer extends React.Component { const classNames = { handle: "mx_ResizeHandle", vertical: "mx_ResizeHandle_vertical", - reverse: "mx_ResizeHandle_reverse", }; const collapseConfig = { onResizeStart: () => { @@ -267,7 +266,7 @@ export default class AppsDrawer extends React.Component { if (i < 1) return app; return ( - apps.length / 2} /> + {app} );