Skip to content

Commit

Permalink
Save address info to local storage
Browse files Browse the repository at this point in the history
  • Loading branch information
aryzing committed Jul 3, 2024
1 parent c49e2a6 commit 542b583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
SendStx,
} from './components';
import { useLocalStorage } from './hooks';
import { useCallback, useState } from 'react';
import { useCallback } from 'react';
import GetBtcBalance from './components/GetBtcBalance';
import GetRunesBalance from './components/GetRunesBalance';
import { ConnectButtonsContainer } from './App.styles';
Expand All @@ -20,7 +20,7 @@ function App() {
'network',
BitcoinNetworkType.Mainnet
);
const [addressInfo, setAddressInfo] = useState<Address[]>([]);
const [addressInfo, setAddressInfo] = useLocalStorage<Address[]>('addresses', []);

const isConnected = addressInfo.length > 0;

Expand Down

0 comments on commit 542b583

Please sign in to comment.