Skip to content

Commit

Permalink
fix: Do not close multisig dialog when open action dialog for multisi…
Browse files Browse the repository at this point in the history
…g. (#3219)
  • Loading branch information
yanguoyu committed Aug 1, 2024
1 parent d4c3527 commit f470156
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/neuron-ui/src/components/MultisigAddress/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ const MultisigAddress = () => {
const { deleteAction, infoAction, sendAction, approveAction } = useActions({ deleteConfigById })
const [showDeleteDialog, setShowDeleteDialog] = useState(false)

const showMainDialog = useMemo(
() => !(infoAction.isDialogOpen || sendAction.isDialogOpen || approveAction.isDialogOpen || isCreateDialogOpen),
[infoAction.isDialogOpen, sendAction.isDialogOpen, approveAction.isDialogOpen, isCreateDialogOpen]
)
const onClickItem = useCallback(
(multisigConfig: MultisigConfig) => (e: React.SyntheticEvent<HTMLButtonElement>) => {
const {
Expand Down Expand Up @@ -226,7 +222,7 @@ const MultisigAddress = () => {
return (
<div>
<Dialog
show={showMainDialog}
show
title={
<div ref={titleRef} className={styles.title}>
{t('multisig-address.window-title')}
Expand Down

2 comments on commit f470156

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 10194884508

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 10194884655

Please sign in to comment.