From fc85e4e77c784ddc1f92efa90914197e61a99165 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Wed, 13 Sep 2023 17:18:04 +0200 Subject: [PATCH] fix(ui): add observer to devtools buttons --- frontend/app/components/Session_/Player/Controls/Controls.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/Session_/Player/Controls/Controls.tsx b/frontend/app/components/Session_/Player/Controls/Controls.tsx index dfe693a02..cc361fce8 100644 --- a/frontend/app/components/Session_/Player/Controls/Controls.tsx +++ b/frontend/app/components/Session_/Player/Controls/Controls.tsx @@ -202,7 +202,7 @@ interface IDevtoolsButtons { messagesLoading: boolean; } -function DevtoolsButtons({ showStorageRedux, toggleBottomTools, bottomBlock, disabledRedux, messagesLoading, markedTargets }: IDevtoolsButtons) { +const DevtoolsButtons = observer(({ showStorageRedux, toggleBottomTools, bottomBlock, disabledRedux, messagesLoading, markedTargets }: IDevtoolsButtons) => { const { store } = React.useContext(PlayerContext); const { @@ -308,7 +308,7 @@ function DevtoolsButtons({ showStorageRedux, toggleBottomTools, bottomBlock, dis )} ) -} +}) const ControlPlayer = observer(Controls);