Skip to content

Commit

Permalink
fix: get addresses focus behaviour, closes #5899
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Oct 11, 2024
1 parent be3cf4d commit 8090d45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { FaviconDisplayer } from '@app/components/favicon-displayer/favicon-disp
interface GetAddressesLayoutProps {
requester: string;
switchAccount: ReactNode;
onBeforeAnimation(): void;
onBeforeAnimation?(): void;
onUserApprovesGetAddresses(): void;
onClickRequestedByLink(): void;
}
Expand All @@ -45,7 +45,7 @@ export function GetAddressesLayout({
});

async function userApprovesGetAddresses() {
onBeforeAnimation();
onBeforeAnimation?.();
const yPos = window.innerHeight / 2 - 100;
const xPos = Math.min(window.innerWidth / 2, 320) - 84;
await contentDisappears.start({
Expand Down
1 change: 0 additions & 1 deletion src/app/pages/rpc-get-addresses/rpc-get-addresses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export function RpcGetAddresses() {
return (
<GetAddressesLayout
requester={origin}
onBeforeAnimation={focusInitatingTab}
onClickRequestedByLink={focusInitatingTab}
switchAccount={
<AccountListItemLayout
Expand Down

0 comments on commit 8090d45

Please sign in to comment.