Skip to content

Commit

Permalink
fix: Do not close multisig dialog when open action dialog for multisig.
Browse files Browse the repository at this point in the history
  • Loading branch information
yanguoyu committed Aug 1, 2024
1 parent d4c3527 commit 3a5cdde
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

0 comments on commit 3a5cdde

Please sign in to comment.