From 5d50e2fe051914932b14206c848d39cec1c8e735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tarik=20G=C3=BCrsoy?= Date: Thu, 11 Jul 2024 17:00:34 +0200 Subject: [PATCH] Export diffdropdown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pushed-by: Tarik Gürsoy Co-authored-by: Tarik Gürsoy --- scm-ui/ui-components/src/index.ts | 1 + scm-ui/ui-components/src/repos/DiffDropDown.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scm-ui/ui-components/src/index.ts b/scm-ui/ui-components/src/index.ts index 00442e9d32..d929fb6c8e 100644 --- a/scm-ui/ui-components/src/index.ts +++ b/scm-ui/ui-components/src/index.ts @@ -91,6 +91,7 @@ export { default as copyToClipboard } from "./CopyToClipboard"; export { createA11yId } from "./createA11yId"; export { useSecondaryNavigation } from "./useSecondaryNavigation"; export { default as useScrollToElement } from "./useScrollToElement"; +export { default as DiffDropDown } from "./repos/DiffDropDown"; export { default as comparators } from "./comparators"; diff --git a/scm-ui/ui-components/src/repos/DiffDropDown.tsx b/scm-ui/ui-components/src/repos/DiffDropDown.tsx index 6956376227..3473b2484e 100644 --- a/scm-ui/ui-components/src/repos/DiffDropDown.tsx +++ b/scm-ui/ui-components/src/repos/DiffDropDown.tsx @@ -39,7 +39,7 @@ const DiffDropDown: FC = ({ collapseDiffs, ignoreWhitespaces, ignoreWhitespaces(); ignoreWhitespaces(); } - }, [ignoreWhitespaces, renderOnMount]); + }, []); const handleOpen = () => { setOpen(!isOpen);