Skip to content

Commit

Permalink
fix: show settings
Browse files Browse the repository at this point in the history
  • Loading branch information
borcherd committed Dec 4, 2024
1 parent 6bdbacc commit 86a4972
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ export const ActionBoxWrapper = ({ children, isDialog, actionMode, showSettings
[actionMode]
);

React.useEffect(() => {
setIsSettingsDialogOpen(false);
}, [setIsSettingsDialogOpen]);

if (isActionDisabled) {
return (
<div className="flex flex-col items-center">
Expand Down Expand Up @@ -69,7 +73,7 @@ export const ActionBoxWrapper = ({ children, isDialog, actionMode, showSettings
/>
)}

<div className={cn(isSettingsDialogOpen && "hidden")}>{children}</div>
<div className={cn(isSettingsDialogOpen && showSettings && "hidden")}>{children}</div>
</div>
</div>
</>
Expand Down

0 comments on commit 86a4972

Please sign in to comment.