Skip to content

Commit

Permalink
Add AccountsProvider to transaction layout (#266)
Browse files Browse the repository at this point in the history
This is needed for tx inspector
Also used for TokenDetailsCard on some transaction pages

Fixes #265
  • Loading branch information
mcintyre94 authored Jul 11, 2023
1 parent 682ebc9 commit 97cd3db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/tx/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { TransactionsProvider } from '@providers/transactions';
import { PropsWithChildren } from 'react';

import { AccountsProvider } from '../providers/accounts';

export default function TxLayout({ children }: PropsWithChildren<Record<string, never>>) {
return (
<TransactionsProvider>
{children}
<AccountsProvider>
{children}
</AccountsProvider>
</TransactionsProvider>
);
}

1 comment on commit 97cd3db

@vercel
Copy link

@vercel vercel bot commented on 97cd3db Jul 11, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

explorer – ./

explorer-git-master-solana-labs.vercel.app
explorer-solana-labs.vercel.app
explorer.solana.com

Please sign in to comment.