Skip to content

Commit

Permalink
Fix TS error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-Mahda committed Oct 24, 2024
1 parent 5846799 commit 7360ca8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/browser-wallet/src/popup/popupX/shell/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import { MemoryRouter } from 'react-router-dom';
import { absoluteRoutes } from '@popup/popupX/constants/routes';
import BlockChainParametersContext from '@popup/shared/BlockChainParametersProvider';
import AccountInfoListenerContext from '@popup/shared/AccountInfoListenerContext';
import { useMessagePromptHandlers } from '@popup/shared/utils/message-prompt-handlers';
import { Network, Theme, Scaling } from './Providers';

import Routes from './Routes';

export default function Root() {
const messagePromptHandlers = useMessagePromptHandlers();
return (
<Provider>
<MemoryRouter initialEntries={[absoluteRoutes.home.path]}>
Expand All @@ -17,7 +19,7 @@ export default function Root() {
<Scaling>
<AccountInfoListenerContext>
<BlockChainParametersContext>
<Routes />
<Routes messagePromptHandlers={messagePromptHandlers} />
</BlockChainParametersContext>
</AccountInfoListenerContext>
</Scaling>
Expand Down

0 comments on commit 7360ca8

Please sign in to comment.