From 67959825fb8f3b1b210fa295573f587e620e11ba Mon Sep 17 00:00:00 2001 From: Alun Turner Date: Mon, 13 Feb 2023 14:14:30 +0000 Subject: [PATCH 1/6] add conditional rendering for indent and unindent buttons --- .../components/FormattingButtons.tsx | 29 +++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/src/components/views/rooms/wysiwyg_composer/components/FormattingButtons.tsx b/src/components/views/rooms/wysiwyg_composer/components/FormattingButtons.tsx index 7bc4b33d412..36ca4b6a61e 100644 --- a/src/components/views/rooms/wysiwyg_composer/components/FormattingButtons.tsx +++ b/src/components/views/rooms/wysiwyg_composer/components/FormattingButtons.tsx @@ -88,6 +88,7 @@ interface FormattingButtonsProps { export function FormattingButtons({ composer, actionStates }: FormattingButtonsProps): JSX.Element { const composerContext = useComposerContext(); + const isInList = actionStates.unorderedList === "reversed" || actionStates.orderedList === "reversed"; return (