Skip to content

Commit

Permalink
set redux provider
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-vahn committed May 14, 2024
1 parent 35312a5 commit 9fef26f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import React from 'react';
import ReactDOM from 'react-dom/client';

// Redux
import { Provider } from 'react-redux';
import { store } from './redux/store.ts';

// TonConnect UI
import { TonConnectUIProvider } from '@tonconnect/ui-react';

Expand Down Expand Up @@ -34,8 +38,10 @@ const root = ReactDOM.createRoot(

root.render(
<React.StrictMode>
<TonConnectUIProvider manifestUrl="https://softstack.github.io/telegram-mini-app/tonconnect-manifest.json">
<App />
</TonConnectUIProvider>
<Provider store={store}>
<TonConnectUIProvider manifestUrl="https://softstack.github.io/telegram-mini-app/tonconnect-manifest.json">
<App />
</TonConnectUIProvider>
</Provider>
</React.StrictMode>
);

0 comments on commit 9fef26f

Please sign in to comment.