Skip to content

Commit

Permalink
Fix: speed up popups (#2985)
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh authored Dec 8, 2023
1 parent c124ede commit 4f7e314
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/batch/BatchSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const BatchSidebar = ({ isOpen, onToggle }: { isOpen: boolean; onToggle: (open:
}, [txFlow, closeSidebar])

return (
<Drawer variant="temporary" anchor="right" open={isOpen} onClose={closeSidebar}>
<Drawer variant="temporary" anchor="right" open={isOpen} onClose={closeSidebar} transitionDuration={100}>
<aside className={css.aside}>
<Typography variant="h4" fontWeight={700} mb={1}>
Batched transactions
Expand Down
1 change: 1 addition & 0 deletions src/components/common/ConnectWallet/AccountCenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const AccountCenter = ({ wallet }: { wallet: ConnectedWallet }) => {
top: 'var(--header-height) !important',
},
}}
transitionDuration={0}
>
<Paper className={css.popoverContainer}>
<WalletInfo wallet={wallet} handleClose={closeWalletInfo} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ const NotificationCenter = (): ReactElement => {
top: 'var(--header-height) !important',
},
}}
transitionDuration={0}
>
<Paper className={css.popoverContainer}>
<div className={css.popoverHeader}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/walletconnect/WcHeaderWidget/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const WcHeaderWidget = ({ sessions, ...props }: WcHeaderWidgetProps) => {
/>
</div>

<Popup keepMounted anchorEl={iconRef.current} open={props.isOpen} onClose={props.onClose}>
<Popup keepMounted anchorEl={iconRef.current} open={props.isOpen} onClose={props.onClose} transitionDuration={0}>
{props.children}
</Popup>
</>
Expand Down

0 comments on commit 4f7e314

Please sign in to comment.