wip: multi account

This commit is contained in:
Ren Amamiya
2023-09-28 13:58:50 +07:00
parent 0e6fc65b08
commit 4f4e2f5ccd
11 changed files with 59 additions and 30 deletions

View File

@@ -9,6 +9,7 @@ interface StrongholdState {
setWalletConnectURL: (uri: string) => void;
clearPrivkey: () => void;
setIsFetched: () => void;
reset: () => void;
}
export const useStronghold = create<StrongholdState>()(
@@ -29,6 +30,9 @@ export const useStronghold = create<StrongholdState>()(
setIsFetched: () => {
set({ isFetched: true });
},
reset: () => {
set({ privkey: null, walletConnectURL: null, isFetched: false });
},
}),
{
name: 'stronghold',