Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
daoauth committed Feb 26, 2025
1 parent baf61a4 commit dd8c156
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
8 changes: 7 additions & 1 deletion packages/clip/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,13 @@ function App() {
setActiveNetwork(network);
}}
>
<WalletProvider autoConnect>
<WalletProvider
autoConnect
stashedWallet={{
name: 'stashed wallet',
network: activeNetwork as 'mainnet' | 'testnet',
}}
>
<RouterProvider router={router} />
</WalletProvider>
</SuiClientProvider>
Expand Down
4 changes: 2 additions & 2 deletions packages/clip/src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import {
useCurrentWallet,
useDisconnectWallet,
} from '@mysten/dapp-kit';
import { Transaction } from '@mysten/sui/transactions';
import { useWalrusWallet } from '@zktx.io/walrus-wallet';
import { enqueueSnackbar } from 'notistack';

import { NETWORK, WALLET_NAME } from '../utils/config';
import { enqueueSnackbar } from 'notistack';
import { Transaction } from '@mysten/sui/transactions';

export const Home = () => {
const { connectionStatus, currentWallet } = useCurrentWallet();
Expand Down
8 changes: 7 additions & 1 deletion packages/demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@ function App() {
setActiveNetwork(network);
}}
>
<WalletProvider autoConnect>
<WalletProvider
autoConnect
stashedWallet={{
name: 'stashed wallet',
network: activeNetwork as 'mainnet' | 'testnet',
}}
>
<RouterProvider router={router} />
</WalletProvider>
</SuiClientProvider>
Expand Down
7 changes: 2 additions & 5 deletions packages/demo/src/pages/Kiosk.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useState } from 'react';
import { motion, AnimatePresence } from 'framer-motion';

import { Transaction } from '@mysten/sui/transactions';
import { useWalrusWallet } from '@zktx.io/walrus-wallet';
import { AnimatePresence, motion } from 'framer-motion';

interface Item {
id: number;
Expand Down Expand Up @@ -105,10 +105,7 @@ export const Kiosk = () => {
) : (
<ul>
{cart.map((item, index) => (
<li
key={index}
className="flex justify-between items-center"
>
<li key={index} className="flex justify-between items-center">
<span>
{item.name} -{' '}
<span className="text-gray-600">
Expand Down

0 comments on commit dd8c156

Please sign in to comment.